| | |
| | | 'use strict' |
| | | const init = (L) => { |
| | | 'use strict'; |
| | | (function (factory, window) { |
| | | // define an AMD module that relies on 'leaflet' |
| | | if (typeof define === 'function' && window.define.amd) { |
| | | window.define(['leaflet'], factory) |
| | | if (typeof define === 'function' && define.amd) { |
| | | define(['leaflet'], factory) |
| | | |
| | | // define a Common JS module that relies on 'leaflet' |
| | | } else if (typeof exports === 'object') { |
| | |
| | | } |
| | | |
| | | // attach your plugin to the global 'L' variable |
| | | if (typeof window !== 'undefined' && L) { |
| | | factory(L) |
| | | if (typeof window !== 'undefined' && window.L) { |
| | | factory(window.L) |
| | | } |
| | | }(function (L) { |
| | | // 🍂miniclass CancelableEvent (Event objects) |
| | |
| | | this.lng = latlng.lng |
| | | } |
| | | }, window)) |
| | | } |
| | | |
| | | export default { |
| | | init |
| | | } |