\r\n\r\n\r\n\r\n\r\n\r\n`\r\n","\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{ codeBasic }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletBasic.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletBasic.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LeafletBasic.vue?vue&type=template&id=88915958&\"\nimport script from \"./LeafletBasic.vue?vue&type=script&lang=js&\"\nexport * from \"./LeafletBasic.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LeafletBasic.vue?vue&type=style&index=0&id=88915958&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card-code',{attrs:{\"title\":\"Marker, Circle & Polygon Map\"},scopedSlots:_vm._u([{key:\"code\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.codeMarkerPolygon)+\" \")]},proxy:true}])},[_c('l-map',{attrs:{\"zoom\":_vm.zoom,\"center\":_vm.center}},[_c('l-tile-layer',{attrs:{\"url\":_vm.url}}),_c('l-marker',{attrs:{\"lat-lng\":_vm.markerLatLng}}),_c('l-circle',{attrs:{\"lat-lng\":_vm.circle.center,\"radius\":_vm.circle.radius,\"color\":_vm.circle.color}}),_c('l-polygon',{attrs:{\"lat-lngs\":_vm.polygon.latlngs,\"color\":_vm.polygon.color}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { setOptions, Icon, marker, DomEvent, latLng } from 'leaflet';\n\nvar debounce = function (fn, time) {\n var timeout;\n\n return function() {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var context = this;\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(function () {\n fn.apply(context, args);\n timeout = null;\n }, time);\n };\n};\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Marker component, lets you add and personalize markers on the map\n */\nvar script = {\n name: 'LMarker',\n mixins: [Layer, Options],\n props: {\n pane: {\n type: String,\n default: 'markerPane',\n },\n draggable: {\n type: Boolean,\n custom: true,\n default: false,\n },\n latLng: {\n type: [Object, Array],\n custom: true,\n default: null,\n },\n icon: {\n type: [Object],\n custom: false,\n default: function () { return new Icon.Default(); },\n },\n zIndexOffset: {\n type: Number,\n custom: false,\n default: null,\n },\n },\n data: function data() {\n return {\n ready: false,\n };\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(\n Object.assign({}, this.layerOptions,\n {icon: this.icon,\n zIndexOffset: this.zIndexOffset,\n draggable: this.draggable}),\n this\n );\n this.mapObject = marker(this.latLng, options);\n DomEvent.on(this.mapObject, this.$listeners);\n this.mapObject.on('move', debounce(this.latLngSync, 100));\n propsBinder(this, this.mapObject, this.$options.props);\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.addLayer(this, !this.visible);\n this.ready = true;\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n methods: {\n setDraggable: function setDraggable(newVal, oldVal) {\n if (this.mapObject.dragging) {\n newVal\n ? this.mapObject.dragging.enable()\n : this.mapObject.dragging.disable();\n }\n },\n setLatLng: function setLatLng(newVal) {\n if (newVal == null) {\n return;\n }\n\n if (this.mapObject) {\n var oldLatLng = this.mapObject.getLatLng();\n var newLatLng = latLng(newVal);\n if (\n newLatLng.lat !== oldLatLng.lat ||\n newLatLng.lng !== oldLatLng.lng\n ) {\n this.mapObject.setLatLng(newLatLng);\n }\n }\n },\n latLngSync: function latLngSync(event) {\n this.$emit('update:latLng', event.latlng);\n this.$emit('update:lat-lng', event.latlng);\n },\n },\n render: function(h) {\n if (this.ready && this.$slots.default) {\n return h('div', { style: { display: 'none' } }, this.$slots.default);\n }\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, polygon, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar InteractiveLayer = {\n props: {\n interactive: {\n type: Boolean,\n default: true\n },\n bubblingMouseEvents: {\n type: Boolean,\n default: true\n }\n },\n mounted: function mounted () {\n this.interactiveLayerOptions = {\n interactive: this.interactive,\n bubblingMouseEvents: this.bubblingMouseEvents\n };\n }\n};\n\nvar Path = {\n mixins: [Layer, InteractiveLayer],\n props: {\n lStyle: {\n type: Object,\n custom: true,\n default: null\n },\n stroke: {\n type: Boolean,\n custom: true,\n default: true\n },\n color: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n weight: {\n type: Number,\n custom: true,\n default: 3\n },\n opacity: {\n type: Number,\n custom: true,\n default: 1.0\n },\n lineCap: {\n type: String,\n custom: true,\n default: 'round'\n },\n lineJoin: {\n type: String,\n custom: true,\n default: 'round'\n },\n dashArray: {\n type: String,\n custom: true,\n default: null\n },\n dashOffset: {\n type: String,\n custom: true,\n default: null\n },\n fill: {\n type: Boolean,\n custom: true,\n default: false\n },\n fillColor: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n fillOpacity: {\n type: Number,\n custom: true,\n default: 0.2\n },\n fillRule: {\n type: String,\n custom: true,\n default: 'evenodd'\n },\n className: {\n type: String,\n custom: true,\n default: null\n }\n },\n mounted: function mounted () {\n this.pathOptions = Object.assign({}, this.layerOptions,\n this.interactiveLayerOptions,\n {stroke: this.stroke,\n color: this.color,\n weight: this.weight,\n opacity: this.opacity,\n lineCap: this.lineCap,\n lineJoin: this.lineJoin,\n dashArray: this.dashArray,\n dashOffset: this.dashOffset,\n fill: this.fill,\n fillColor: this.fillColor,\n fillOpacity: this.fillOpacity,\n fillRule: this.fillRule,\n className: this.className});\n\n if (this.lStyle) {\n console.warn('lStyle is deprecated and is going to be removed in the next major version');\n for (var style in this.lStyle) {\n this.pathOptions[style] = this.lStyle[style];\n }\n }\n },\n beforeDestroy: function beforeDestroy () {\n if (this.parentContainer) {\n this.parentContainer.removeLayer(this);\n } else {\n console.error('Missing parent container');\n }\n },\n methods: {\n setLStyle: function setLStyle (newVal) {\n this.mapObject.setStyle(newVal);\n },\n setStroke: function setStroke (newVal) {\n this.mapObject.setStyle({ stroke: newVal });\n },\n setColor: function setColor (newVal) {\n this.mapObject.setStyle({ color: newVal });\n },\n setWeight: function setWeight (newVal) {\n this.mapObject.setStyle({ weight: newVal });\n },\n setOpacity: function setOpacity (newVal) {\n this.mapObject.setStyle({ opacity: newVal });\n },\n setLineCap: function setLineCap (newVal) {\n this.mapObject.setStyle({ lineCap: newVal });\n },\n setLineJoin: function setLineJoin (newVal) {\n this.mapObject.setStyle({ lineJoin: newVal });\n },\n setDashArray: function setDashArray (newVal) {\n this.mapObject.setStyle({ dashArray: newVal });\n },\n setDashOffset: function setDashOffset (newVal) {\n this.mapObject.setStyle({ dashOffset: newVal });\n },\n setFill: function setFill (newVal) {\n this.mapObject.setStyle({ fill: newVal });\n },\n setFillColor: function setFillColor (newVal) {\n this.mapObject.setStyle({ fillColor: newVal });\n },\n setFillOpacity: function setFillOpacity (newVal) {\n this.mapObject.setStyle({ fillOpacity: newVal });\n },\n setFillRule: function setFillRule (newVal) {\n this.mapObject.setStyle({ fillRule: newVal });\n },\n setClassName: function setClassName (newVal) {\n this.mapObject.setStyle({ className: newVal });\n }\n }\n};\n\nvar Polyline = {\n mixins: [Path],\n props: {\n smoothFactor: {\n type: Number,\n custom: true,\n default: 1.0\n },\n noClip: {\n type: Boolean,\n custom: true,\n default: false\n }\n },\n data: function data () {\n return {\n ready: false\n };\n },\n mounted: function mounted () {\n this.polyLineOptions = Object.assign({}, this.pathOptions,\n {smoothFactor: this.smoothFactor,\n noClip: this.noClip});\n },\n methods: {\n setSmoothFactor: function setSmoothFactor (newVal) {\n this.mapObject.setStyle({ smoothFactor: newVal });\n },\n setNoClip: function setNoClip (newVal) {\n this.mapObject.setStyle({ noClip: newVal });\n },\n addLatLng: function addLatLng (value) {\n this.mapObject.addLatLng(value);\n }\n }\n};\n\nvar PolygonMixin = {\n mixins: [Polyline],\n props: {\n fill: {\n type: Boolean,\n custom: true,\n default: true\n }\n },\n mounted: function mounted () {\n this.polygonOptions = this.polyLineOptions;\n },\n methods: {\n getGeoJSONData: function getGeoJSONData () {\n return this.mapObject.toGeoJSON();\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Easily draw a polygon on the map\n */\nvar script = {\n name: 'LPolygon',\n mixins: [PolygonMixin, Options],\n props: {\n latLngs: {\n type: Array,\n default: function () { return []; },\n },\n },\n data: function data() {\n return {\n ready: false,\n };\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.polygonOptions, this);\n this.mapObject = polygon(this.latLngs, options);\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.ready = true;\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.addLayer(this, !this.visible);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{ codeMarkerPolygon }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletMarkerCirclePolygon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletMarkerCirclePolygon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LeafletMarkerCirclePolygon.vue?vue&type=template&id=53754eca&\"\nimport script from \"./LeafletMarkerCirclePolygon.vue?vue&type=script&lang=js&\"\nexport * from \"./LeafletMarkerCirclePolygon.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LeafletMarkerCirclePolygon.vue?vue&type=style&index=0&id=53754eca&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card-code',{attrs:{\"title\":\"Popup Map\"},scopedSlots:_vm._u([{key:\"code\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.codePopup)+\" \")]},proxy:true}])},[_c('l-map',{attrs:{\"zoom\":_vm.zoom,\"center\":_vm.center}},[_c('l-tile-layer',{attrs:{\"url\":_vm.url}}),_c('l-marker',{attrs:{\"lat-lng\":_vm.markerLatLng}},[_c('l-popup',[_vm._v(\"You're here!\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { setOptions, popup, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Popper = {\n props: {\n content: {\n type: String,\n default: null,\n custom: true\n }\n },\n mounted: function mounted () {\n this.popperOptions = {};\n },\n methods: {\n setContent: function setContent (newVal) {\n if (this.mapObject && newVal !== null && newVal !== undefined) {\n this.mapObject.setContent(newVal);\n }\n }\n },\n render: function render (h) {\n if (this.$slots.default) {\n return h('div', this.$slots.default);\n }\n return null;\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Display a popup on the map\n */\nvar script = {\n name: 'LPopup',\n mixins: [Popper, Options],\n props: {\n latLng: {\n type: [Object, Array],\n default: function () { return []; },\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.popperOptions, this);\n this.mapObject = popup(options);\n if (this.latLng !== undefined) {\n this.mapObject.setLatLng(this.latLng);\n }\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.mapObject.setContent(this.content || this.$el);\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.mapObject.bindPopup(this.mapObject);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n beforeDestroy: function beforeDestroy() {\n if (this.parentContainer) {\n if (this.parentContainer.unbindPopup) {\n this.parentContainer.unbindPopup();\n } else if (\n this.parentContainer.mapObject &&\n this.parentContainer.mapObject.unbindPopup\n ) {\n this.parentContainer.mapObject.unbindPopup();\n }\n }\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","\r\n \r\n \r\n \r\n \r\n You're here!\r\n \r\n \r\n\r\n \r\n {{ codePopup }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletPopup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletPopup.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LeafletPopup.vue?vue&type=template&id=be6d9c90&\"\nimport script from \"./LeafletPopup.vue?vue&type=script&lang=js&\"\nexport * from \"./LeafletPopup.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LeafletPopup.vue?vue&type=style&index=0&id=be6d9c90&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card-code',{attrs:{\"title\":\"GeoJSON Map\"},scopedSlots:_vm._u([{key:\"code\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.codeGeoJSON)+\" \")]},proxy:true}])},[_c('l-map',{attrs:{\"zoom\":_vm.zoom,\"center\":_vm.center}},[_c('l-tile-layer',{attrs:{\"url\":_vm.url}}),_c('l-geo-json',{attrs:{\"geojson\":_vm.geojson}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { setOptions, geoJSON, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar LayerGroup = {\n mixins: [Layer],\n mounted: function mounted () {\n this.layerGroupOptions = this.layerOptions;\n },\n methods: {\n addLayer: function addLayer (layer, alreadyAdded) {\n if (!alreadyAdded) {\n this.mapObject.addLayer(layer.mapObject);\n }\n this.parentContainer.addLayer(layer, true);\n },\n removeLayer: function removeLayer (layer, alreadyRemoved) {\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n this.parentContainer.removeLayer(layer, true);\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Easily display a geo-json on the map\n */\nvar script = {\n name: 'LGeoJson',\n mixins: [LayerGroup, Options],\n props: {\n geojson: {\n type: [Object, Array],\n custom: true,\n default: function () { return ({}); },\n },\n options: {\n type: Object,\n custom: true,\n default: function () { return ({}); },\n },\n optionsStyle: {\n type: [Object, Function],\n custom: true,\n default: null,\n },\n },\n computed: {\n mergedOptions: function mergedOptions() {\n return optionsMerger(\n Object.assign({}, this.layerGroupOptions,\n {style: this.optionsStyle}),\n this\n );\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n this.mapObject = geoJSON(this.geojson, this.mergedOptions);\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.addLayer(this, !this.visible);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.parentContainer.mapObject.removeLayer(this.mapObject);\n },\n methods: {\n setGeojson: function setGeojson(newVal) {\n this.mapObject.clearLayers();\n this.mapObject.addData(newVal);\n },\n getGeoJSONData: function getGeoJSONData() {\n return this.mapObject.toGeoJSON();\n },\n getBounds: function getBounds() {\n return this.mapObject.getBounds();\n },\n setOptions: function setOptions$1(newVal, oldVal) {\n this.mapObject.clearLayers();\n setOptions(this.mapObject, this.mergedOptions);\n this.mapObject.addData(this.geojson);\n },\n setOptionsStyle: function setOptionsStyle(newVal, oldVal) {\n this.mapObject.setStyle(newVal);\n },\n },\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{ codeGeoJSON }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletGeoJSON.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletGeoJSON.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LeafletGeoJSON.vue?vue&type=template&id=bb73b678&\"\nimport script from \"./LeafletGeoJSON.vue?vue&type=script&lang=js&\"\nexport * from \"./LeafletGeoJSON.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LeafletGeoJSON.vue?vue&type=style&index=0&id=bb73b678&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card-code',{attrs:{\"title\":\"Layer Group\"},scopedSlots:_vm._u([{key:\"code\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.codeLayerGroup)+\" \")]},proxy:true}])},[_c('div',[_c('b-button',{attrs:{\"variant\":\"outline-primary\"},on:{\"click\":_vm.fitPolyline}},[_vm._v(\" Fit map to polyline \")]),_c('b-row',{staticClass:\"mt-2\"},[_c('b-col',{attrs:{\"md\":\"6\"}},[_c('b-form-group',{attrs:{\"label\":\"Contol Layers position: \"}},[_c('b-form-select',{attrs:{\"options\":_vm.Positions},model:{value:(_vm.layersPosition),callback:function ($$v) {_vm.layersPosition=$$v},expression:\"layersPosition\"}})],1)],1),_c('b-col',{attrs:{\"md\":\"6\"}},[_c('b-form-group',{attrs:{\"label\":\"Attribution position:\"}},[_c('b-form-select',{attrs:{\"options\":_vm.Positions},model:{value:(_vm.attributionPosition),callback:function ($$v) {_vm.attributionPosition=$$v},expression:\"attributionPosition\"}})],1)],1)],1)],1),_c('l-map',{staticStyle:{\"height\":\"500px\",\"width\":\"100%\"},attrs:{\"zoom\":_vm.zoom,\"options\":_vm.mapOptions,\"center\":_vm.center,\"bounds\":_vm.bounds,\"min-zoom\":_vm.minZoom,\"max-zoom\":_vm.maxZoom},on:{\"update:zoom\":function($event){_vm.zoom=$event}}},[_c('l-control-layers',{attrs:{\"position\":_vm.layersPosition,\"collapsed\":false,\"sort-layers\":true}}),_vm._l((_vm.tileProviders),function(tileProvider){return _c('l-tile-layer',{key:tileProvider.name,attrs:{\"name\":tileProvider.name,\"visible\":tileProvider.visible,\"url\":tileProvider.url,\"attribution\":tileProvider.attribution,\"token\":_vm.token,\"layer-type\":\"base\"}})}),_c('l-control-zoom',{attrs:{\"position\":_vm.zoomPosition}}),_c('l-control-attribution',{attrs:{\"position\":_vm.attributionPosition,\"prefix\":_vm.attributionPrefix}}),_c('l-control-scale',{attrs:{\"imperial\":_vm.imperial}}),_vm._l((_vm.markers),function(marker){return _c('l-marker',{key:marker.id,attrs:{\"visible\":marker.visible,\"draggable\":marker.draggable,\"lat-lng\":marker.position,\"icon\":marker.icon},on:{\"update:latLng\":function($event){return _vm.$set(marker, \"position\", $event)},\"update:lat-lng\":function($event){return _vm.$set(marker, \"position\", $event)},\"click\":function($event){return _vm.alert(marker)}}},[_c('l-popup',{attrs:{\"content\":marker.tooltip}}),_c('l-tooltip',{attrs:{\"content\":marker.tooltip}})],1)}),_c('l-layer-group',{attrs:{\"layer-type\":\"overlay\",\"name\":\"Layer polyline\"}},_vm._l((_vm.polylines),function(item){return _c('l-polyline',{key:item.id,attrs:{\"lat-lngs\":item.points,\"visible\":item.visible},on:{\"click\":function($event){return _vm.alert(item)}}})}),1),_vm._l((_vm.stuff),function(item){return _c('l-layer-group',{key:item.id,attrs:{\"visible\":item.visible,\"layer-type\":\"overlay\",\"name\":\"Layer 1\"},on:{\"update:visible\":function($event){return _vm.$set(item, \"visible\", $event)}}},[_c('l-layer-group',{attrs:{\"visible\":item.markersVisible}},_vm._l((item.markers),function(marker){return _c('l-marker',{key:marker.id,attrs:{\"visible\":marker.visible,\"draggable\":marker.draggable,\"lat-lng\":marker.position},on:{\"click\":function($event){return _vm.alert(marker)}}})}),1),_c('l-polyline',{attrs:{\"lat-lngs\":item.polyline.points,\"visible\":item.polyline.visible},on:{\"click\":function($event){return _vm.alert(item.polyline)}}})],1)})],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { setOptions, polyline, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar InteractiveLayer = {\n props: {\n interactive: {\n type: Boolean,\n default: true\n },\n bubblingMouseEvents: {\n type: Boolean,\n default: true\n }\n },\n mounted: function mounted () {\n this.interactiveLayerOptions = {\n interactive: this.interactive,\n bubblingMouseEvents: this.bubblingMouseEvents\n };\n }\n};\n\nvar Path = {\n mixins: [Layer, InteractiveLayer],\n props: {\n lStyle: {\n type: Object,\n custom: true,\n default: null\n },\n stroke: {\n type: Boolean,\n custom: true,\n default: true\n },\n color: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n weight: {\n type: Number,\n custom: true,\n default: 3\n },\n opacity: {\n type: Number,\n custom: true,\n default: 1.0\n },\n lineCap: {\n type: String,\n custom: true,\n default: 'round'\n },\n lineJoin: {\n type: String,\n custom: true,\n default: 'round'\n },\n dashArray: {\n type: String,\n custom: true,\n default: null\n },\n dashOffset: {\n type: String,\n custom: true,\n default: null\n },\n fill: {\n type: Boolean,\n custom: true,\n default: false\n },\n fillColor: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n fillOpacity: {\n type: Number,\n custom: true,\n default: 0.2\n },\n fillRule: {\n type: String,\n custom: true,\n default: 'evenodd'\n },\n className: {\n type: String,\n custom: true,\n default: null\n }\n },\n mounted: function mounted () {\n this.pathOptions = Object.assign({}, this.layerOptions,\n this.interactiveLayerOptions,\n {stroke: this.stroke,\n color: this.color,\n weight: this.weight,\n opacity: this.opacity,\n lineCap: this.lineCap,\n lineJoin: this.lineJoin,\n dashArray: this.dashArray,\n dashOffset: this.dashOffset,\n fill: this.fill,\n fillColor: this.fillColor,\n fillOpacity: this.fillOpacity,\n fillRule: this.fillRule,\n className: this.className});\n\n if (this.lStyle) {\n console.warn('lStyle is deprecated and is going to be removed in the next major version');\n for (var style in this.lStyle) {\n this.pathOptions[style] = this.lStyle[style];\n }\n }\n },\n beforeDestroy: function beforeDestroy () {\n if (this.parentContainer) {\n this.parentContainer.removeLayer(this);\n } else {\n console.error('Missing parent container');\n }\n },\n methods: {\n setLStyle: function setLStyle (newVal) {\n this.mapObject.setStyle(newVal);\n },\n setStroke: function setStroke (newVal) {\n this.mapObject.setStyle({ stroke: newVal });\n },\n setColor: function setColor (newVal) {\n this.mapObject.setStyle({ color: newVal });\n },\n setWeight: function setWeight (newVal) {\n this.mapObject.setStyle({ weight: newVal });\n },\n setOpacity: function setOpacity (newVal) {\n this.mapObject.setStyle({ opacity: newVal });\n },\n setLineCap: function setLineCap (newVal) {\n this.mapObject.setStyle({ lineCap: newVal });\n },\n setLineJoin: function setLineJoin (newVal) {\n this.mapObject.setStyle({ lineJoin: newVal });\n },\n setDashArray: function setDashArray (newVal) {\n this.mapObject.setStyle({ dashArray: newVal });\n },\n setDashOffset: function setDashOffset (newVal) {\n this.mapObject.setStyle({ dashOffset: newVal });\n },\n setFill: function setFill (newVal) {\n this.mapObject.setStyle({ fill: newVal });\n },\n setFillColor: function setFillColor (newVal) {\n this.mapObject.setStyle({ fillColor: newVal });\n },\n setFillOpacity: function setFillOpacity (newVal) {\n this.mapObject.setStyle({ fillOpacity: newVal });\n },\n setFillRule: function setFillRule (newVal) {\n this.mapObject.setStyle({ fillRule: newVal });\n },\n setClassName: function setClassName (newVal) {\n this.mapObject.setStyle({ className: newVal });\n }\n }\n};\n\nvar PolylineMixin = {\n mixins: [Path],\n props: {\n smoothFactor: {\n type: Number,\n custom: true,\n default: 1.0\n },\n noClip: {\n type: Boolean,\n custom: true,\n default: false\n }\n },\n data: function data () {\n return {\n ready: false\n };\n },\n mounted: function mounted () {\n this.polyLineOptions = Object.assign({}, this.pathOptions,\n {smoothFactor: this.smoothFactor,\n noClip: this.noClip});\n },\n methods: {\n setSmoothFactor: function setSmoothFactor (newVal) {\n this.mapObject.setStyle({ smoothFactor: newVal });\n },\n setNoClip: function setNoClip (newVal) {\n this.mapObject.setStyle({ noClip: newVal });\n },\n addLatLng: function addLatLng (value) {\n this.mapObject.addLatLng(value);\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Easily draw a polyline on the map\n */\nvar script = {\n name: 'LPolyline',\n mixins: [PolylineMixin, Options],\n props: {\n latLngs: {\n type: Array,\n default: function () { return []; },\n },\n },\n data: function data() {\n return {\n ready: false,\n };\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.polyLineOptions, this);\n this.mapObject = polyline(this.latLngs, options);\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.ready = true;\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.addLayer(this, !this.visible);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, layerGroup, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar LayerGroupMixin = {\n mixins: [Layer],\n mounted: function mounted () {\n this.layerGroupOptions = this.layerOptions;\n },\n methods: {\n addLayer: function addLayer (layer, alreadyAdded) {\n if (!alreadyAdded) {\n this.mapObject.addLayer(layer.mapObject);\n }\n this.parentContainer.addLayer(layer, true);\n },\n removeLayer: function removeLayer (layer, alreadyRemoved) {\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n this.parentContainer.removeLayer(layer, true);\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Group together elements of the maps including: markers, geoJSON, polylines and polygon, tooltip and popup.\n */\nvar script = {\n name: 'LLayerGroup',\n mixins: [LayerGroupMixin, Options],\n data: function data() {\n return {\n ready: false,\n };\n },\n mounted: function mounted() {\n var this$1 = this;\n\n this.mapObject = layerGroup();\n propsBinder(this, this.mapObject, this.$options.props);\n DomEvent.on(this.mapObject, this.$listeners);\n this.ready = true;\n this.parentContainer = findRealParent(this.$parent);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, tooltip, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Popper = {\n props: {\n content: {\n type: String,\n default: null,\n custom: true\n }\n },\n mounted: function mounted () {\n this.popperOptions = {};\n },\n methods: {\n setContent: function setContent (newVal) {\n if (this.mapObject && newVal !== null && newVal !== undefined) {\n this.mapObject.setContent(newVal);\n }\n }\n },\n render: function render (h) {\n if (this.$slots.default) {\n return h('div', this.$slots.default);\n }\n return null;\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Display a tooltip on the map\n */\nvar script = {\n name: 'LTooltip',\n mixins: [Popper, Options],\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.popperOptions, this);\n this.mapObject = tooltip(options);\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.mapObject.setContent(this.content || this.$el);\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.mapObject.bindTooltip(this.mapObject);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n beforeDestroy: function beforeDestroy() {\n if (this.parentContainer) {\n if (this.parentContainer.unbindTooltip) {\n this.parentContainer.unbindTooltip();\n } else if (\n this.parentContainer.mapObject &&\n this.parentContainer.mapObject.unbindTooltip\n ) {\n this.parentContainer.mapObject.unbindTooltip();\n }\n }\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, control } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar ControlMixin = {\n props: {\n position: {\n type: String,\n default: 'topright'\n }\n },\n mounted: function mounted () {\n this.controlOptions = {\n position: this.position\n };\n },\n beforeDestroy: function beforeDestroy () {\n if (this.mapObject) {\n this.mapObject.remove();\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Add any custom component as a leaflet control-zoom\n */\nvar script = {\n name: 'LControlZoom',\n mixins: [ControlMixin, Options],\n props: {\n zoomInText: {\n type: String,\n default: '+',\n },\n zoomInTitle: {\n type: String,\n default: 'Zoom in',\n },\n zoomOutText: {\n type: String,\n default: '-',\n },\n zoomOutTitle: {\n type: String,\n default: 'Zoom out',\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(\n Object.assign({}, this.controlOptions,\n {zoomInText: this.zoomInText,\n zoomInTitle: this.zoomInTitle,\n zoomOutText: this.zoomOutText,\n zoomOutTitle: this.zoomOutTitle}),\n this\n );\n this.mapObject = control.zoom(options);\n propsBinder(this, this.mapObject, this.$options.props);\n this.mapObject.addTo(this.$parent.mapObject);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, control } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar ControlMixin = {\n props: {\n position: {\n type: String,\n default: 'topright'\n }\n },\n mounted: function mounted () {\n this.controlOptions = {\n position: this.position\n };\n },\n beforeDestroy: function beforeDestroy () {\n if (this.mapObject) {\n this.mapObject.remove();\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Add any custom component as a leaflet control-attribution\n */\nvar script = {\n name: 'LControlAttribution',\n mixins: [ControlMixin, Options],\n props: {\n prefix: {\n type: [String, Boolean],\n default: null,\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(\n Object.assign({}, this.controlOptions,\n {prefix: this.prefix}),\n this\n );\n this.mapObject = control.attribution(options);\n propsBinder(this, this.mapObject, this.$options.props);\n this.mapObject.addTo(this.$parent.mapObject);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, control } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar ControlMixin = {\n props: {\n position: {\n type: String,\n default: 'topright'\n }\n },\n mounted: function mounted () {\n this.controlOptions = {\n position: this.position\n };\n },\n beforeDestroy: function beforeDestroy () {\n if (this.mapObject) {\n this.mapObject.remove();\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Add any custom component as a leaflet control-scale\n */\nvar script = {\n name: 'LControlScale',\n mixins: [ControlMixin, Options],\n props: {\n maxWidth: {\n type: Number,\n default: 100,\n },\n metric: {\n type: Boolean,\n default: true,\n },\n imperial: {\n type: Boolean,\n default: true,\n },\n updateWhenIdle: {\n type: Boolean,\n default: false,\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(\n Object.assign({}, this.controlOptions,\n {maxWidth: this.maxWidth,\n metric: this.metric,\n imperial: this.imperial,\n updateWhenIdle: this.updateWhenIdle}),\n this\n );\n this.mapObject = control.scale(options);\n propsBinder(this, this.mapObject, this.$options.props);\n this.mapObject.addTo(this.$parent.mapObject);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, control } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar ControlMixin = {\n props: {\n position: {\n type: String,\n default: 'topright'\n }\n },\n mounted: function mounted () {\n this.controlOptions = {\n position: this.position\n };\n },\n beforeDestroy: function beforeDestroy () {\n if (this.mapObject) {\n this.mapObject.remove();\n }\n }\n};\n\nvar Options = {\n props: {\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Add any custom component as a leaflet control-layers\n */\nvar script = {\n name: 'LControlLayers',\n mixins: [ControlMixin, Options],\n props: {\n collapsed: {\n type: Boolean,\n default: true,\n },\n autoZIndex: {\n type: Boolean,\n default: true,\n },\n hideSingleBase: {\n type: Boolean,\n default: false,\n },\n sortLayers: {\n type: Boolean,\n default: false,\n },\n sortFunction: {\n type: Function,\n default: undefined,\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(\n Object.assign({}, this.controlOptions,\n {collapsed: this.collapsed,\n autoZIndex: this.autoZIndex,\n hideSingleBase: this.hideSingleBase,\n sortLayers: this.sortLayers,\n sortFunction: this.sortFunction}),\n this\n );\n this.mapObject = control.layers(null, null, options);\n propsBinder(this, this.mapObject, this.$options.props);\n this.$parent.registerLayerControl(this);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n methods: {\n addLayer: function addLayer(layer) {\n if (layer.layerType === 'base') {\n this.mapObject.addBaseLayer(layer.mapObject, layer.name);\n } else if (layer.layerType === 'overlay') {\n this.mapObject.addOverlay(layer.mapObject, layer.name);\n }\n },\n removeLayer: function removeLayer(layer) {\n this.mapObject.removeLayer(layer.mapObject);\n },\n },\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","\r\n \r\n
\r\n \r\n Fit map to polyline\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{ codeLayerGroup }}\r\n \r\n \r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletGroup.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletGroup.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LeafletGroup.vue?vue&type=template&id=e5f8b550&\"\nimport script from \"./LeafletGroup.vue?vue&type=script&lang=js&\"\nexport * from \"./LeafletGroup.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card-code',{attrs:{\"title\":\"Custom Icon\"},scopedSlots:_vm._u([{key:\"code\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.codeCustomIcon)+\" \")]},proxy:true}])},[_c('l-map',{attrs:{\"zoom\":_vm.zoom,\"center\":_vm.center}},[_c('l-tile-layer',{attrs:{\"url\":_vm.url,\"attribution\":_vm.attribution}}),_c('l-marker',{attrs:{\"lat-lng\":[47.41322, -1.219482]}}),_c('l-marker',{attrs:{\"lat-lng\":[47.41322, -1.209482],\"icon\":_vm.icon}}),_c('l-marker',{attrs:{\"lat-lng\":[47.41322, -1.199482]}},[_c('l-icon',[_c('b-img',{attrs:{\"src\":require('@/assets/images/misc/leaf-red.png'),\"height\":\"50\"}})],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { setOptions, DomEvent, divIcon, icon } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default\n : Symbol('unique');\n if (result[key] && def !== props[key]) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\n//\n\n/**\n * Easy and reactive way to configure the icon of a marker\n */\nvar script = {\n name: 'LIcon',\n props: {\n iconUrl: {\n type: String,\n custom: true,\n default: null,\n },\n iconRetinaUrl: {\n type: String,\n custom: true,\n default: null,\n },\n iconSize: {\n type: [Object, Array],\n custom: true,\n default: null,\n },\n iconAnchor: {\n type: [Object, Array],\n custom: true,\n default: null,\n },\n popupAnchor: {\n type: [Object, Array],\n custom: true,\n default: function () { return [0, 0]; },\n },\n tooltipAnchor: {\n type: [Object, Array],\n custom: true,\n default: function () { return [0, 0]; },\n },\n shadowUrl: {\n type: String,\n custom: true,\n default: null,\n },\n shadowRetinaUrl: {\n type: String,\n custom: true,\n default: null,\n },\n shadowSize: {\n type: [Object, Array],\n custom: true,\n default: null,\n },\n shadowAnchor: {\n type: [Object, Array],\n custom: true,\n default: null,\n },\n bgPos: {\n type: [Object, Array],\n custom: true,\n default: function () { return [0, 0]; },\n },\n className: {\n type: String,\n custom: true,\n default: '',\n },\n options: {\n type: Object,\n custom: true,\n default: function () { return ({}); },\n },\n },\n\n data: function data() {\n return {\n parentContainer: null,\n observer: null,\n recreationNeeded: false,\n swapHtmlNeeded: false,\n };\n },\n\n mounted: function mounted() {\n var this$1 = this;\n\n this.parentContainer = findRealParent(this.$parent);\n\n propsBinder(this, this.$parent.mapObject, this.$options.props);\n\n this.observer = new MutationObserver(function () {\n this$1.scheduleHtmlSwap();\n });\n this.observer.observe(this.$el, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n });\n this.scheduleCreateIcon();\n },\n\n beforeDestroy: function beforeDestroy() {\n if (this.parentContainer.mapObject) {\n this.parentContainer.mapObject.setIcon(this.parentContainer.$props.icon);\n }\n\n this.observer.disconnect();\n },\n\n methods: {\n scheduleCreateIcon: function scheduleCreateIcon() {\n this.recreationNeeded = true;\n\n this.$nextTick(this.createIcon);\n },\n\n scheduleHtmlSwap: function scheduleHtmlSwap() {\n this.htmlSwapNeeded = true;\n\n this.$nextTick(this.createIcon);\n },\n\n createIcon: function createIcon() {\n // If only html of a divIcon changed, we can just replace the DOM without the need of recreating the whole icon\n if (\n this.htmlSwapNeeded &&\n !this.recreationNeeded &&\n this.iconObject &&\n this.parentContainer.mapObject.getElement()\n ) {\n this.parentContainer.mapObject.getElement().innerHTML = this.$el.innerHTML;\n\n this.htmlSwapNeeded = false;\n return;\n }\n\n if (!this.recreationNeeded) {\n return;\n }\n\n if (this.iconObject) {\n DomEvent.off(this.iconObject, this.$listeners);\n }\n\n var options = optionsMerger(\n {\n iconUrl: this.iconUrl,\n iconRetinaUrl: this.iconRetinaUrl,\n iconSize: this.iconSize,\n iconAnchor: this.iconAnchor,\n popupAnchor: this.popupAnchor,\n tooltipAnchor: this.tooltipAnchor,\n shadowUrl: this.shadowUrl,\n shadowRetinaUrl: this.shadowRetinaUrl,\n shadowSize: this.shadowSize,\n shadowAnchor: this.shadowAnchor,\n bgPos: this.bgPos,\n className: this.className,\n html: this.$el.innerHTML || this.html,\n },\n this\n );\n\n if (options.html) {\n this.iconObject = divIcon(options);\n } else {\n this.iconObject = icon(options);\n }\n\n DomEvent.on(this.iconObject, this.$listeners);\n\n this.parentContainer.mapObject.setIcon(this.iconObject);\n\n this.recreationNeeded = false;\n this.htmlSwapNeeded = false;\n },\n\n setIconUrl: function setIconUrl() {\n this.scheduleCreateIcon();\n },\n setIconRetinaUrl: function setIconRetinaUrl() {\n this.scheduleCreateIcon();\n },\n setIconSize: function setIconSize() {\n this.scheduleCreateIcon();\n },\n setIconAnchor: function setIconAnchor() {\n this.scheduleCreateIcon();\n },\n setPopupAnchor: function setPopupAnchor() {\n this.scheduleCreateIcon();\n },\n setTooltipAnchor: function setTooltipAnchor() {\n this.scheduleCreateIcon();\n },\n setShadowUrl: function setShadowUrl() {\n this.scheduleCreateIcon();\n },\n setShadowRetinaUrl: function setShadowRetinaUrl() {\n this.scheduleCreateIcon();\n },\n setShadowAnchor: function setShadowAnchor() {\n this.scheduleCreateIcon();\n },\n setBgPos: function setBgPos() {\n this.scheduleCreateIcon();\n },\n setClassName: function setClassName() {\n this.scheduleCreateIcon();\n },\n setHtml: function setHtml() {\n this.scheduleCreateIcon();\n },\n },\n\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nvar isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._t(\"default\")],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{ codeCustomIcon }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletCustomIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletCustomIcon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LeafletCustomIcon.vue?vue&type=template&id=481b0a8e&\"\nimport script from \"./LeafletCustomIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./LeafletCustomIcon.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LeafletCustomIcon.vue?vue&type=style&index=0&id=481b0a8e&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Leaflet.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Leaflet.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Leaflet.vue?vue&type=template&id=3cd2e51c&\"\nimport script from \"./Leaflet.vue?vue&type=script&lang=js&\"\nexport * from \"./Leaflet.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Leaflet.vue?vue&type=style&index=0&id=3cd2e51c&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAABfCAYAAACEELWnAAAKhUlEQVR4AczVA3QsSRTG8YrXtm3btmLbeVzbtv1sxU7WthVrw7WNu/93M91TrzOzVs75dX3dXXXrpjuZMf/Fz0YbbRSGHbEqQmC8nPBvC8NNGIL5HzWm0lH5f2xsTTyFzf5njakzcVHQxppHJoaAcdIGjJvAYCVs3zwyYVUYn5Vg/i7svQfmYcUgjU0a1zg0rhoLaeYtFvU0DU9oID9CfgWPNQ1PvI/xgubhCVdzb1LT8PgYbALzZ7F3FG7HcQEbY6PtmobGSV1/vjQMjhMaEBZCR38G+Vt8iG8gaMOtrD8C5o9i/yNxAUICNbZu0/C4l+sGCqW6N0eq+/KFp6UNsVgaYWdYGf5736EOxY2D4zaB+T3oYQFOwZqexsaHMuEW3WSwRJsDT69YRq+B0cnMCZ5h5ZqGwZJsbN4wUBwC47XOWuuH0kMG+rCZ3ZiiyLH4EdIwUCSV3RlS1Z0pTZ5NG6AN23nAn9nMzj81DJR8yNiIFJhA2D8HC7FOoMbWoFgnE92NKnsypbQjRWr787UR7qHI2dQ9tzOC5a/rB4pq6/sLj8YKMA72n4QsrDymMQqEs3gKpN4qWt2XS3OpUsOr5bpQSBr6i5ys7Nyg52CEnaHzPsbVTlN7HbRdFPtfgUMQ5m1MMTEH4lXZnSULWxIYebU8Lf+9AmXnOivXgv90zYxg9OEtNDz6xbjdrlsSfdBKUWtdwv7bB/3kp8CmLBpwimhB8Fvrk1vYmiCL25Ol9t08p7iOzNcMT86zs66z86OflTyRcdoBFStGrnX2SlFrrw3jcIKLhU1OAeXJi9uSZBFqaJRryHM3Ajk3UAYZVtb7U55IlsILDk6GsTnBxcIiu4An01COzHsnTua9HSvVPdkUt+8xWnnMuZ0BXV/akvXaI58Vrg/jcIKLyZuz+ANPcSvn6esqa0+VWW/GyBL+MfjM893X0clct/NSy+Zqcg2o/zPjPTW92cvDwOjBRqEwFs0NWAxkd9PF7Sk0F62jPlVrHrVgZVTDyVXe3JP9PTk6eGOgGBOY6CvO6NeT5SuWpa9yCU1Nf+0kmfN2HOeZbO7cA6OT2djNIGf6M+sg5NKq7owoGMNhDAquTJFXnOKMVhG3mI40yZghM9+IxilS3pnmbkQtK4PRy55X3Z35KXmjYI0pJp45Wswu7s0YzdrQ9NdPxilSRq7hF+K6Jd3K6HKvk0HGj1XdaVkwhkMQGSEs+sRbwM4gA9Vcr+xKkxk8uXtfPl4WtCTouTOvstvKXLcz7DwZ4YZDQDQQxuSLghbwZLiNzn07Xu6hublvxXLuW9+Z6s7zZtj5FnKE4RBUVWfauoxd/mIIUMyrgo+QOW/Fyd0vHsc/xslSzrUq39wKZc1Vdk5ZBGM4IDgWRLPgB7BhyrLFOuyc4ssg80vJIr7C7qQ5nh45Ua8DOsev081IvgnGcPgdUqZAgkuWcljnOlZiSVui3PXi8XLXS8fpd21lp71GkZPcjBLuhfzexlZgwSKrGJI8GYGzPrm7Xzpebnv+aJnFP0d5e5KvmTE+xWasDTMcfq9NWdSEH0DxRLegN5fBzhWdPBWamfLKSXLzs0fLtNdOlNK2BL0HZ95XuA0GRg+/E80lrkGRmrL2BIq5heHNsLM2AUx79SS54dmjhFdLc/F8OCdKZc/SphLuxNYwMHr4w9ri7yhtj/9RN6Q4GzgNaC7VHA8y7HlLWuNlKl9hN9Lc7S/z9F446fOpT558DXMi6gaSQ2Bg9PBHsclabHI2hkvb4qS0FYxOhpVjNcPNVd0JfJycIuNu20+OTNjxBRgvJ/wZNBh3Ynlb3PNVHfE/lrfF6sZLUNriZHhyGfMqOuN+adYegyNb3gCMd0ZrK1jbtncQrm3biG39cW3bVuzk2rZtM3nvM1NnqtYIqvrDr7qT2pzzbL8njpxfFSZTggZJG1vXVzp39BsEdTRjU3+XPTO33f9qQoqvf3E+N+amnAiRxHmjiAF7Y10oFz81VyLyA2Xm6uHi7xfwD1/WD2zUn/bEF9mtSSXOuPA8+7MJxU7JqgySC54M9Tzgt7zChwVCbn9tgdz08ny5mZcvfzZM/lcTLPsfcsqRvEBZmjlN/LoF/NqzV4/uUEczNucuqcTRMrHYsS+hyPFjPFFxRV4uSSh2SUqpS1JLAyW3KlgyCeb1Elfoku33uWTbfUGy9s5QWXGlU3r06fnjyOn9d0Mdzdicm5QyhzW5zLExqdRRS6AQKAkAAQ6JLXRITKHTsx56xCkHsOv+IFl/Z7BsuTtINtwZInsfCpR9jwXKeJ6zqQuHXLvmv1PaQHkZm3ND2B68n1zqEIC4ErAmsEblOSU8zyU7iNnzQCAxjO/BQDnwcKBEPOYUonnGWEtcErp3tIycMUCGju9rhfIyNmcnvcJhwqS0CscXqeUOSQErUcCRx1xy6FGX7COCIM/L8MTGFDglvohTJIq9RCOG8W69bLp0aef3pb9vwFgoL2NzdrIq7WMyKuxVxHmCGKdE5btvQgyjieJmkfkuSTTGm8TKuAkC4txRBk8oJ7b7xpkybGLfOj/fgL1QXsbmzLKr7L1zqu23EcPN7FzYuLjxwHOKnlBWYcyM1xPFaeGo59Dz7486ueSaoNpRjNKvm38B7+nWc/5wkVNjj+MEatPK7ZLMjTIr7MKe9zi7ZFS6g4BUpJQbcUcFJrvjjglEsfPvyEccT3D9iwMCuv/COuwcw4CsKvtWTu723Gr7x6z/QLLcYUSmIw3GmA1HB8I9WiMwAWk1rgfW507s3aGV7zKuL9hXr7DsantzBGAlElGKP4j7FZweCEsHCDXicNR4f4IQmJ7zfNAoqM5tfcO4/i+4rV5hx0VaMAgROVX2/+FiTrCUwJcJ/INTFOI+J+59I/AV3EdgLCc4nJHaoNz4tNSKa36C99H7qLCGI6oDRhA2Fn0Jm814V2AkgT3Tyh0ToY7XuZ3nZ7Bj8B0E/t6wRkeYD9TZ4m364C18DfsZw3bt2uUTHh7uk5CQ4KaaCvfywXkQHILpjP/76Ohod5QZqonj1uJPFKKF+xU68MECCB5FMz3CgCj8jFVQOoW9gAL01CXMB31Qh0Ww6RJmQjpeRTMoXcImoBrRUDqFnYd89NYpbCBexnooXcIsuAxl6KJT2BJ8imVQuoR1xCN4GBZdwqyIxHcIgap3WG5urjk1NdUHqr6O+iuBGfgS/0HzBoVlZWVZUlJSzFD1wTXaYw8UHsB78INqaJj7Sx9TA76kWYo/kI3fEQ7VwDDgyJEjZqj64O1X43v8iXwMbpww46tZqHNlPFtT8QMELpgbHtZwNmxFLV6CctMhrC1ugCBGp7DeeB9PYJwuYWYEQ5ANiy5hLZCFv7AKSpcwX9TgDYzXKawLfsEN6KxTWD8IboFJp7D9qEM0lE5hl+JjzNEprAXK8Qpa6RQ2Ft/heSidwnZCkKVTWB88iDpM1CWsA1LwG76HRZewtrgLgnxYdQnrgxchyEZLnUb5Hf7BQZ1OzBdP4Besh48uYTbcD8EGKD3CgDwIJusU1ho3oBZjdQqz4WL8gfm6jfJSCJboFGZGDgQ7YdIp7DAEafqEAdsgOF+3Z2w2BOv0CgP6oiNUffwL9qpqeyvjgUkAAAAASUVORK5CYII=\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeafletGeoJSON.vue?vue&type=style&index=0&id=bb73b678&prod&lang=scss&\"","/* @preserve\n * Leaflet 1.6.0, a JS library for interactive maps. http://leafletjs.com\n * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(factory((global.L = {})));\n}(this, (function (exports) { 'use strict';\n\nvar version = \"1.6.0\";\n\n/*\r\n * @namespace Util\r\n *\r\n * Various utility functions, used by Leaflet internally.\r\n */\r\n\r\nvar freeze = Object.freeze;\r\nObject.freeze = function (obj) { return obj; };\r\n\r\n// @function extend(dest: Object, src?: Object): Object\r\n// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.\r\nfunction extend(dest) {\r\n\tvar i, j, len, src;\r\n\r\n\tfor (j = 1, len = arguments.length; j < len; j++) {\r\n\t\tsrc = arguments[j];\r\n\t\tfor (i in src) {\r\n\t\t\tdest[i] = src[i];\r\n\t\t}\r\n\t}\r\n\treturn dest;\r\n}\r\n\r\n// @function create(proto: Object, properties?: Object): Object\r\n// Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)\r\nvar create = Object.create || (function () {\r\n\tfunction F() {}\r\n\treturn function (proto) {\r\n\t\tF.prototype = proto;\r\n\t\treturn new F();\r\n\t};\r\n})();\r\n\r\n// @function bind(fn: Function, ā¦): Function\r\n// Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).\r\n// Has a `L.bind()` shortcut.\r\nfunction bind(fn, obj) {\r\n\tvar slice = Array.prototype.slice;\r\n\r\n\tif (fn.bind) {\r\n\t\treturn fn.bind.apply(fn, slice.call(arguments, 1));\r\n\t}\r\n\r\n\tvar args = slice.call(arguments, 2);\r\n\r\n\treturn function () {\r\n\t\treturn fn.apply(obj, args.length ? args.concat(slice.call(arguments)) : arguments);\r\n\t};\r\n}\r\n\r\n// @property lastId: Number\r\n// Last unique ID used by [`stamp()`](#util-stamp)\r\nvar lastId = 0;\r\n\r\n// @function stamp(obj: Object): Number\r\n// Returns the unique ID of an object, assigning it one if it doesn't have it.\r\nfunction stamp(obj) {\r\n\t/*eslint-disable */\r\n\tobj._leaflet_id = obj._leaflet_id || ++lastId;\r\n\treturn obj._leaflet_id;\r\n\t/* eslint-enable */\r\n}\r\n\r\n// @function throttle(fn: Function, time: Number, context: Object): Function\r\n// Returns a function which executes function `fn` with the given scope `context`\r\n// (so that the `this` keyword refers to `context` inside `fn`'s code). The function\r\n// `fn` will be called no more than one time per given amount of `time`. The arguments\r\n// received by the bound function will be any arguments passed when binding the\r\n// function, followed by any arguments passed when invoking the bound function.\r\n// Has an `L.throttle` shortcut.\r\nfunction throttle(fn, time, context) {\r\n\tvar lock, args, wrapperFn, later;\r\n\r\n\tlater = function () {\r\n\t\t// reset lock and call if queued\r\n\t\tlock = false;\r\n\t\tif (args) {\r\n\t\t\twrapperFn.apply(context, args);\r\n\t\t\targs = false;\r\n\t\t}\r\n\t};\r\n\r\n\twrapperFn = function () {\r\n\t\tif (lock) {\r\n\t\t\t// called too soon, queue to call later\r\n\t\t\targs = arguments;\r\n\r\n\t\t} else {\r\n\t\t\t// call and lock until later\r\n\t\t\tfn.apply(context, arguments);\r\n\t\t\tsetTimeout(later, time);\r\n\t\t\tlock = true;\r\n\t\t}\r\n\t};\r\n\r\n\treturn wrapperFn;\r\n}\r\n\r\n// @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number\r\n// Returns the number `num` modulo `range` in such a way so it lies within\r\n// `range[0]` and `range[1]`. The returned value will be always smaller than\r\n// `range[1]` unless `includeMax` is set to `true`.\r\nfunction wrapNum(x, range, includeMax) {\r\n\tvar max = range[1],\r\n\t min = range[0],\r\n\t d = max - min;\r\n\treturn x === max && includeMax ? x : ((x - min) % d + d) % d + min;\r\n}\r\n\r\n// @function falseFn(): Function\r\n// Returns a function which always returns `false`.\r\nfunction falseFn() { return false; }\r\n\r\n// @function formatNum(num: Number, digits?: Number): Number\r\n// Returns the number `num` rounded to `digits` decimals, or to 6 decimals by default.\r\nfunction formatNum(num, digits) {\r\n\tvar pow = Math.pow(10, (digits === undefined ? 6 : digits));\r\n\treturn Math.round(num * pow) / pow;\r\n}\r\n\r\n// @function trim(str: String): String\r\n// Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)\r\nfunction trim(str) {\r\n\treturn str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\r\n}\r\n\r\n// @function splitWords(str: String): String[]\r\n// Trims and splits the string on whitespace and returns the array of parts.\r\nfunction splitWords(str) {\r\n\treturn trim(str).split(/\\s+/);\r\n}\r\n\r\n// @function setOptions(obj: Object, options: Object): Object\r\n// Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.\r\nfunction setOptions(obj, options) {\r\n\tif (!obj.hasOwnProperty('options')) {\r\n\t\tobj.options = obj.options ? create(obj.options) : {};\r\n\t}\r\n\tfor (var i in options) {\r\n\t\tobj.options[i] = options[i];\r\n\t}\r\n\treturn obj.options;\r\n}\r\n\r\n// @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String\r\n// Converts an object into a parameter URL string, e.g. `{a: \"foo\", b: \"bar\"}`\r\n// translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will\r\n// be appended at the end. If `uppercase` is `true`, the parameter names will\r\n// be uppercased (e.g. `'?A=foo&B=bar'`)\r\nfunction getParamString(obj, existingUrl, uppercase) {\r\n\tvar params = [];\r\n\tfor (var i in obj) {\r\n\t\tparams.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i]));\r\n\t}\r\n\treturn ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&');\r\n}\r\n\r\nvar templateRe = /\\{ *([\\w_-]+) *\\}/g;\r\n\r\n// @function template(str: String, data: Object): String\r\n// Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`\r\n// and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string\r\n// `('Hello foo, bar')`. You can also specify functions instead of strings for\r\n// data values ā they will be evaluated passing `data` as an argument.\r\nfunction template(str, data) {\r\n\treturn str.replace(templateRe, function (str, key) {\r\n\t\tvar value = data[key];\r\n\r\n\t\tif (value === undefined) {\r\n\t\t\tthrow new Error('No value provided for variable ' + str);\r\n\r\n\t\t} else if (typeof value === 'function') {\r\n\t\t\tvalue = value(data);\r\n\t\t}\r\n\t\treturn value;\r\n\t});\r\n}\r\n\r\n// @function isArray(obj): Boolean\r\n// Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)\r\nvar isArray = Array.isArray || function (obj) {\r\n\treturn (Object.prototype.toString.call(obj) === '[object Array]');\r\n};\r\n\r\n// @function indexOf(array: Array, el: Object): Number\r\n// Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)\r\nfunction indexOf(array, el) {\r\n\tfor (var i = 0; i < array.length; i++) {\r\n\t\tif (array[i] === el) { return i; }\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n// @property emptyImageUrl: String\r\n// Data URI string containing a base64-encoded empty GIF image.\r\n// Used as a hack to free memory from unused images on WebKit-powered\r\n// mobile devices (by setting image `src` to this string).\r\nvar emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';\r\n\r\n// inspired by http://paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n\r\nfunction getPrefixed(name) {\r\n\treturn window['webkit' + name] || window['moz' + name] || window['ms' + name];\r\n}\r\n\r\nvar lastTime = 0;\r\n\r\n// fallback for IE 7-8\r\nfunction timeoutDefer(fn) {\r\n\tvar time = +new Date(),\r\n\t timeToCall = Math.max(0, 16 - (time - lastTime));\r\n\r\n\tlastTime = time + timeToCall;\r\n\treturn window.setTimeout(fn, timeToCall);\r\n}\r\n\r\nvar requestFn = window.requestAnimationFrame || getPrefixed('RequestAnimationFrame') || timeoutDefer;\r\nvar cancelFn = window.cancelAnimationFrame || getPrefixed('CancelAnimationFrame') ||\r\n\t\tgetPrefixed('CancelRequestAnimationFrame') || function (id) { window.clearTimeout(id); };\r\n\r\n// @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number\r\n// Schedules `fn` to be executed when the browser repaints. `fn` is bound to\r\n// `context` if given. When `immediate` is set, `fn` is called immediately if\r\n// the browser doesn't have native support for\r\n// [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),\r\n// otherwise it's delayed. Returns a request ID that can be used to cancel the request.\r\nfunction requestAnimFrame(fn, context, immediate) {\r\n\tif (immediate && requestFn === timeoutDefer) {\r\n\t\tfn.call(context);\r\n\t} else {\r\n\t\treturn requestFn.call(window, bind(fn, context));\r\n\t}\r\n}\r\n\r\n// @function cancelAnimFrame(id: Number): undefined\r\n// Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).\r\nfunction cancelAnimFrame(id) {\r\n\tif (id) {\r\n\t\tcancelFn.call(window, id);\r\n\t}\r\n}\r\n\n\nvar Util = (Object.freeze || Object)({\n\tfreeze: freeze,\n\textend: extend,\n\tcreate: create,\n\tbind: bind,\n\tlastId: lastId,\n\tstamp: stamp,\n\tthrottle: throttle,\n\twrapNum: wrapNum,\n\tfalseFn: falseFn,\n\tformatNum: formatNum,\n\ttrim: trim,\n\tsplitWords: splitWords,\n\tsetOptions: setOptions,\n\tgetParamString: getParamString,\n\ttemplate: template,\n\tisArray: isArray,\n\tindexOf: indexOf,\n\temptyImageUrl: emptyImageUrl,\n\trequestFn: requestFn,\n\tcancelFn: cancelFn,\n\trequestAnimFrame: requestAnimFrame,\n\tcancelAnimFrame: cancelAnimFrame\n});\n\n// @class Class\r\n// @aka L.Class\r\n\r\n// @section\r\n// @uninheritable\r\n\r\n// Thanks to John Resig and Dean Edwards for inspiration!\r\n\r\nfunction Class() {}\r\n\r\nClass.extend = function (props) {\r\n\r\n\t// @function extend(props: Object): Function\r\n\t// [Extends the current class](#class-inheritance) given the properties to be included.\r\n\t// Returns a Javascript function that is a class constructor (to be called with `new`).\r\n\tvar NewClass = function () {\r\n\r\n\t\t// call the constructor\r\n\t\tif (this.initialize) {\r\n\t\t\tthis.initialize.apply(this, arguments);\r\n\t\t}\r\n\r\n\t\t// call all constructor hooks\r\n\t\tthis.callInitHooks();\r\n\t};\r\n\r\n\tvar parentProto = NewClass.__super__ = this.prototype;\r\n\r\n\tvar proto = create(parentProto);\r\n\tproto.constructor = NewClass;\r\n\r\n\tNewClass.prototype = proto;\r\n\r\n\t// inherit parent's statics\r\n\tfor (var i in this) {\r\n\t\tif (this.hasOwnProperty(i) && i !== 'prototype' && i !== '__super__') {\r\n\t\t\tNewClass[i] = this[i];\r\n\t\t}\r\n\t}\r\n\r\n\t// mix static properties into the class\r\n\tif (props.statics) {\r\n\t\textend(NewClass, props.statics);\r\n\t\tdelete props.statics;\r\n\t}\r\n\r\n\t// mix includes into the prototype\r\n\tif (props.includes) {\r\n\t\tcheckDeprecatedMixinEvents(props.includes);\r\n\t\textend.apply(null, [proto].concat(props.includes));\r\n\t\tdelete props.includes;\r\n\t}\r\n\r\n\t// merge options\r\n\tif (proto.options) {\r\n\t\tprops.options = extend(create(proto.options), props.options);\r\n\t}\r\n\r\n\t// mix given properties into the prototype\r\n\textend(proto, props);\r\n\r\n\tproto._initHooks = [];\r\n\r\n\t// add method for calling all hooks\r\n\tproto.callInitHooks = function () {\r\n\r\n\t\tif (this._initHooksCalled) { return; }\r\n\r\n\t\tif (parentProto.callInitHooks) {\r\n\t\t\tparentProto.callInitHooks.call(this);\r\n\t\t}\r\n\r\n\t\tthis._initHooksCalled = true;\r\n\r\n\t\tfor (var i = 0, len = proto._initHooks.length; i < len; i++) {\r\n\t\t\tproto._initHooks[i].call(this);\r\n\t\t}\r\n\t};\r\n\r\n\treturn NewClass;\r\n};\r\n\r\n\r\n// @function include(properties: Object): this\r\n// [Includes a mixin](#class-includes) into the current class.\r\nClass.include = function (props) {\r\n\textend(this.prototype, props);\r\n\treturn this;\r\n};\r\n\r\n// @function mergeOptions(options: Object): this\r\n// [Merges `options`](#class-options) into the defaults of the class.\r\nClass.mergeOptions = function (options) {\r\n\textend(this.prototype.options, options);\r\n\treturn this;\r\n};\r\n\r\n// @function addInitHook(fn: Function): this\r\n// Adds a [constructor hook](#class-constructor-hooks) to the class.\r\nClass.addInitHook = function (fn) { // (Function) || (String, args...)\r\n\tvar args = Array.prototype.slice.call(arguments, 1);\r\n\r\n\tvar init = typeof fn === 'function' ? fn : function () {\r\n\t\tthis[fn].apply(this, args);\r\n\t};\r\n\r\n\tthis.prototype._initHooks = this.prototype._initHooks || [];\r\n\tthis.prototype._initHooks.push(init);\r\n\treturn this;\r\n};\r\n\r\nfunction checkDeprecatedMixinEvents(includes) {\r\n\tif (typeof L === 'undefined' || !L || !L.Mixin) { return; }\r\n\r\n\tincludes = isArray(includes) ? includes : [includes];\r\n\r\n\tfor (var i = 0; i < includes.length; i++) {\r\n\t\tif (includes[i] === L.Mixin.Events) {\r\n\t\t\tconsole.warn('Deprecated include of L.Mixin.Events: ' +\r\n\t\t\t\t'this property will be removed in future releases, ' +\r\n\t\t\t\t'please inherit from L.Evented instead.', new Error().stack);\r\n\t\t}\r\n\t}\r\n}\n\n/*\r\n * @class Evented\r\n * @aka L.Evented\r\n * @inherits Class\r\n *\r\n * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * map.on('click', function(e) {\r\n * \talert(e.latlng);\r\n * } );\r\n * ```\r\n *\r\n * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:\r\n *\r\n * ```js\r\n * function onClick(e) { ... }\r\n *\r\n * map.on('click', onClick);\r\n * map.off('click', onClick);\r\n * ```\r\n */\r\n\r\nvar Events = {\r\n\t/* @method on(type: String, fn: Function, context?: Object): this\r\n\t * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).\r\n\t *\r\n\t * @alternative\r\n\t * @method on(eventMap: Object): this\r\n\t * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`\r\n\t */\r\n\ton: function (types, fn, context) {\r\n\r\n\t\t// types can be a map of types/handlers\r\n\t\tif (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\t// we don't process space-separated events here for performance;\r\n\t\t\t\t// it's a hot path since Layer uses the on(obj) syntax\r\n\t\t\t\tthis._on(type, types[type], fn);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// types can be a string of space-separated words\r\n\t\t\ttypes = splitWords(types);\r\n\r\n\t\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\t\tthis._on(types[i], fn, context);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/* @method off(type: String, fn?: Function, context?: Object): this\r\n\t * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.\r\n\t *\r\n\t * @alternative\r\n\t * @method off(eventMap: Object): this\r\n\t * Removes a set of type/listener pairs.\r\n\t *\r\n\t * @alternative\r\n\t * @method off: this\r\n\t * Removes all listeners to all events on the object. This includes implicitly attached events.\r\n\t */\r\n\toff: function (types, fn, context) {\r\n\r\n\t\tif (!types) {\r\n\t\t\t// clear all listeners if called without arguments\r\n\t\t\tdelete this._events;\r\n\r\n\t\t} else if (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\tthis._off(type, types[type], fn);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\ttypes = splitWords(types);\r\n\r\n\t\t\tfor (var i = 0, len = types.length; i < len; i++) {\r\n\t\t\t\tthis._off(types[i], fn, context);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// attach listener (without syntactic sugar now)\r\n\t_on: function (type, fn, context) {\r\n\t\tthis._events = this._events || {};\r\n\r\n\t\t/* get/init listeners for type */\r\n\t\tvar typeListeners = this._events[type];\r\n\t\tif (!typeListeners) {\r\n\t\t\ttypeListeners = [];\r\n\t\t\tthis._events[type] = typeListeners;\r\n\t\t}\r\n\r\n\t\tif (context === this) {\r\n\t\t\t// Less memory footprint.\r\n\t\t\tcontext = undefined;\r\n\t\t}\r\n\t\tvar newListener = {fn: fn, ctx: context},\r\n\t\t listeners = typeListeners;\r\n\r\n\t\t// check if fn already there\r\n\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\tif (listeners[i].fn === fn && listeners[i].ctx === context) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlisteners.push(newListener);\r\n\t},\r\n\r\n\t_off: function (type, fn, context) {\r\n\t\tvar listeners,\r\n\t\t i,\r\n\t\t len;\r\n\r\n\t\tif (!this._events) { return; }\r\n\r\n\t\tlisteners = this._events[type];\r\n\r\n\t\tif (!listeners) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!fn) {\r\n\t\t\t// Set all removed listeners to noop so they are not called if remove happens in fire\r\n\t\t\tfor (i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\tlisteners[i].fn = falseFn;\r\n\t\t\t}\r\n\t\t\t// clear all listeners for a type if function isn't specified\r\n\t\t\tdelete this._events[type];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (context === this) {\r\n\t\t\tcontext = undefined;\r\n\t\t}\r\n\r\n\t\tif (listeners) {\r\n\r\n\t\t\t// find fn and remove it\r\n\t\t\tfor (i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\tvar l = listeners[i];\r\n\t\t\t\tif (l.ctx !== context) { continue; }\r\n\t\t\t\tif (l.fn === fn) {\r\n\r\n\t\t\t\t\t// set the removed listener to noop so that's not called if remove happens in fire\r\n\t\t\t\t\tl.fn = falseFn;\r\n\r\n\t\t\t\t\tif (this._firingCount) {\r\n\t\t\t\t\t\t/* copy array in case events are being fired */\r\n\t\t\t\t\t\tthis._events[type] = listeners = listeners.slice();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlisteners.splice(i, 1);\r\n\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// @method fire(type: String, data?: Object, propagate?: Boolean): this\r\n\t// Fires an event of the specified type. You can optionally provide an data\r\n\t// object ā the first argument of the listener function will contain its\r\n\t// properties. The event can optionally be propagated to event parents.\r\n\tfire: function (type, data, propagate) {\r\n\t\tif (!this.listens(type, propagate)) { return this; }\r\n\r\n\t\tvar event = extend({}, data, {\r\n\t\t\ttype: type,\r\n\t\t\ttarget: this,\r\n\t\t\tsourceTarget: data && data.sourceTarget || this\r\n\t\t});\r\n\r\n\t\tif (this._events) {\r\n\t\t\tvar listeners = this._events[type];\r\n\r\n\t\t\tif (listeners) {\r\n\t\t\t\tthis._firingCount = (this._firingCount + 1) || 1;\r\n\t\t\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\r\n\t\t\t\t\tvar l = listeners[i];\r\n\t\t\t\t\tl.fn.call(l.ctx || this, event);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis._firingCount--;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (propagate) {\r\n\t\t\t// propagate the event to parents (set with addEventParent)\r\n\t\t\tthis._propagateEvent(event);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method listens(type: String): Boolean\r\n\t// Returns `true` if a particular event type has any listeners attached to it.\r\n\tlistens: function (type, propagate) {\r\n\t\tvar listeners = this._events && this._events[type];\r\n\t\tif (listeners && listeners.length) { return true; }\r\n\r\n\t\tif (propagate) {\r\n\t\t\t// also check parents for listeners if event propagates\r\n\t\t\tfor (var id in this._eventParents) {\r\n\t\t\t\tif (this._eventParents[id].listens(type, propagate)) { return true; }\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t},\r\n\r\n\t// @method once(ā¦): this\r\n\t// Behaves as [`on(ā¦)`](#evented-on), except the listener will only get fired once and then removed.\r\n\tonce: function (types, fn, context) {\r\n\r\n\t\tif (typeof types === 'object') {\r\n\t\t\tfor (var type in types) {\r\n\t\t\t\tthis.once(type, types[type], fn);\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\tvar handler = bind(function () {\r\n\t\t\tthis\r\n\t\t\t .off(types, fn, context)\r\n\t\t\t .off(types, handler, context);\r\n\t\t}, this);\r\n\r\n\t\t// add a listener that's executed once and removed after that\r\n\t\treturn this\r\n\t\t .on(types, fn, context)\r\n\t\t .on(types, handler, context);\r\n\t},\r\n\r\n\t// @method addEventParent(obj: Evented): this\r\n\t// Adds an event parent - an `Evented` that will receive propagated events\r\n\taddEventParent: function (obj) {\r\n\t\tthis._eventParents = this._eventParents || {};\r\n\t\tthis._eventParents[stamp(obj)] = obj;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method removeEventParent(obj: Evented): this\r\n\t// Removes an event parent, so it will stop receiving propagated events\r\n\tremoveEventParent: function (obj) {\r\n\t\tif (this._eventParents) {\r\n\t\t\tdelete this._eventParents[stamp(obj)];\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t_propagateEvent: function (e) {\r\n\t\tfor (var id in this._eventParents) {\r\n\t\t\tthis._eventParents[id].fire(e.type, extend({\r\n\t\t\t\tlayer: e.target,\r\n\t\t\t\tpropagatedFrom: e.target\r\n\t\t\t}, e), true);\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// aliases; we should ditch those eventually\r\n\r\n// @method addEventListener(ā¦): this\r\n// Alias to [`on(ā¦)`](#evented-on)\r\nEvents.addEventListener = Events.on;\r\n\r\n// @method removeEventListener(ā¦): this\r\n// Alias to [`off(ā¦)`](#evented-off)\r\n\r\n// @method clearAllEventListeners(ā¦): this\r\n// Alias to [`off()`](#evented-off)\r\nEvents.removeEventListener = Events.clearAllEventListeners = Events.off;\r\n\r\n// @method addOneTimeEventListener(ā¦): this\r\n// Alias to [`once(ā¦)`](#evented-once)\r\nEvents.addOneTimeEventListener = Events.once;\r\n\r\n// @method fireEvent(ā¦): this\r\n// Alias to [`fire(ā¦)`](#evented-fire)\r\nEvents.fireEvent = Events.fire;\r\n\r\n// @method hasEventListeners(ā¦): Boolean\r\n// Alias to [`listens(ā¦)`](#evented-listens)\r\nEvents.hasEventListeners = Events.listens;\r\n\r\nvar Evented = Class.extend(Events);\n\n/*\r\n * @class Point\r\n * @aka L.Point\r\n *\r\n * Represents a point with `x` and `y` coordinates in pixels.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var point = L.point(200, 300);\r\n * ```\r\n *\r\n * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:\r\n *\r\n * ```js\r\n * map.panBy([200, 300]);\r\n * map.panBy(L.point(200, 300));\r\n * ```\r\n *\r\n * Note that `Point` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction Point(x, y, round) {\r\n\t// @property x: Number; The `x` coordinate of the point\r\n\tthis.x = (round ? Math.round(x) : x);\r\n\t// @property y: Number; The `y` coordinate of the point\r\n\tthis.y = (round ? Math.round(y) : y);\r\n}\r\n\r\nvar trunc = Math.trunc || function (v) {\r\n\treturn v > 0 ? Math.floor(v) : Math.ceil(v);\r\n};\r\n\r\nPoint.prototype = {\r\n\r\n\t// @method clone(): Point\r\n\t// Returns a copy of the current point.\r\n\tclone: function () {\r\n\t\treturn new Point(this.x, this.y);\r\n\t},\r\n\r\n\t// @method add(otherPoint: Point): Point\r\n\t// Returns the result of addition of the current and the given points.\r\n\tadd: function (point) {\r\n\t\t// non-destructive, returns a new point\r\n\t\treturn this.clone()._add(toPoint(point));\r\n\t},\r\n\r\n\t_add: function (point) {\r\n\t\t// destructive, used directly for performance in situations where it's safe to modify existing point\r\n\t\tthis.x += point.x;\r\n\t\tthis.y += point.y;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method subtract(otherPoint: Point): Point\r\n\t// Returns the result of subtraction of the given point from the current.\r\n\tsubtract: function (point) {\r\n\t\treturn this.clone()._subtract(toPoint(point));\r\n\t},\r\n\r\n\t_subtract: function (point) {\r\n\t\tthis.x -= point.x;\r\n\t\tthis.y -= point.y;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method divideBy(num: Number): Point\r\n\t// Returns the result of division of the current point by the given number.\r\n\tdivideBy: function (num) {\r\n\t\treturn this.clone()._divideBy(num);\r\n\t},\r\n\r\n\t_divideBy: function (num) {\r\n\t\tthis.x /= num;\r\n\t\tthis.y /= num;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method multiplyBy(num: Number): Point\r\n\t// Returns the result of multiplication of the current point by the given number.\r\n\tmultiplyBy: function (num) {\r\n\t\treturn this.clone()._multiplyBy(num);\r\n\t},\r\n\r\n\t_multiplyBy: function (num) {\r\n\t\tthis.x *= num;\r\n\t\tthis.y *= num;\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method scaleBy(scale: Point): Point\r\n\t// Multiply each coordinate of the current point by each coordinate of\r\n\t// `scale`. In linear algebra terms, multiply the point by the\r\n\t// [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)\r\n\t// defined by `scale`.\r\n\tscaleBy: function (point) {\r\n\t\treturn new Point(this.x * point.x, this.y * point.y);\r\n\t},\r\n\r\n\t// @method unscaleBy(scale: Point): Point\r\n\t// Inverse of `scaleBy`. Divide each coordinate of the current point by\r\n\t// each coordinate of `scale`.\r\n\tunscaleBy: function (point) {\r\n\t\treturn new Point(this.x / point.x, this.y / point.y);\r\n\t},\r\n\r\n\t// @method round(): Point\r\n\t// Returns a copy of the current point with rounded coordinates.\r\n\tround: function () {\r\n\t\treturn this.clone()._round();\r\n\t},\r\n\r\n\t_round: function () {\r\n\t\tthis.x = Math.round(this.x);\r\n\t\tthis.y = Math.round(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method floor(): Point\r\n\t// Returns a copy of the current point with floored coordinates (rounded down).\r\n\tfloor: function () {\r\n\t\treturn this.clone()._floor();\r\n\t},\r\n\r\n\t_floor: function () {\r\n\t\tthis.x = Math.floor(this.x);\r\n\t\tthis.y = Math.floor(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method ceil(): Point\r\n\t// Returns a copy of the current point with ceiled coordinates (rounded up).\r\n\tceil: function () {\r\n\t\treturn this.clone()._ceil();\r\n\t},\r\n\r\n\t_ceil: function () {\r\n\t\tthis.x = Math.ceil(this.x);\r\n\t\tthis.y = Math.ceil(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method trunc(): Point\r\n\t// Returns a copy of the current point with truncated coordinates (rounded towards zero).\r\n\ttrunc: function () {\r\n\t\treturn this.clone()._trunc();\r\n\t},\r\n\r\n\t_trunc: function () {\r\n\t\tthis.x = trunc(this.x);\r\n\t\tthis.y = trunc(this.y);\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method distanceTo(otherPoint: Point): Number\r\n\t// Returns the cartesian distance between the current and the given points.\r\n\tdistanceTo: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\tvar x = point.x - this.x,\r\n\t\t y = point.y - this.y;\r\n\r\n\t\treturn Math.sqrt(x * x + y * y);\r\n\t},\r\n\r\n\t// @method equals(otherPoint: Point): Boolean\r\n\t// Returns `true` if the given point has the same coordinates.\r\n\tequals: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\treturn point.x === this.x &&\r\n\t\t point.y === this.y;\r\n\t},\r\n\r\n\t// @method contains(otherPoint: Point): Boolean\r\n\t// Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).\r\n\tcontains: function (point) {\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\treturn Math.abs(point.x) <= Math.abs(this.x) &&\r\n\t\t Math.abs(point.y) <= Math.abs(this.y);\r\n\t},\r\n\r\n\t// @method toString(): String\r\n\t// Returns a string representation of the point for debugging purposes.\r\n\ttoString: function () {\r\n\t\treturn 'Point(' +\r\n\t\t formatNum(this.x) + ', ' +\r\n\t\t formatNum(this.y) + ')';\r\n\t}\r\n};\r\n\r\n// @factory L.point(x: Number, y: Number, round?: Boolean)\r\n// Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.\r\n\r\n// @alternative\r\n// @factory L.point(coords: Number[])\r\n// Expects an array of the form `[x, y]` instead.\r\n\r\n// @alternative\r\n// @factory L.point(coords: Object)\r\n// Expects a plain object of the form `{x: Number, y: Number}` instead.\r\nfunction toPoint(x, y, round) {\r\n\tif (x instanceof Point) {\r\n\t\treturn x;\r\n\t}\r\n\tif (isArray(x)) {\r\n\t\treturn new Point(x[0], x[1]);\r\n\t}\r\n\tif (x === undefined || x === null) {\r\n\t\treturn x;\r\n\t}\r\n\tif (typeof x === 'object' && 'x' in x && 'y' in x) {\r\n\t\treturn new Point(x.x, x.y);\r\n\t}\r\n\treturn new Point(x, y, round);\r\n}\n\n/*\r\n * @class Bounds\r\n * @aka L.Bounds\r\n *\r\n * Represents a rectangular area in pixel coordinates.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var p1 = L.point(10, 10),\r\n * p2 = L.point(40, 60),\r\n * bounds = L.bounds(p1, p2);\r\n * ```\r\n *\r\n * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:\r\n *\r\n * ```js\r\n * otherBounds.intersects([[10, 10], [40, 60]]);\r\n * ```\r\n *\r\n * Note that `Bounds` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction Bounds(a, b) {\r\n\tif (!a) { return; }\r\n\r\n\tvar points = b ? [a, b] : a;\r\n\r\n\tfor (var i = 0, len = points.length; i < len; i++) {\r\n\t\tthis.extend(points[i]);\r\n\t}\r\n}\r\n\r\nBounds.prototype = {\r\n\t// @method extend(point: Point): this\r\n\t// Extends the bounds to contain the given point.\r\n\textend: function (point) { // (Point)\r\n\t\tpoint = toPoint(point);\r\n\r\n\t\t// @property min: Point\r\n\t\t// The top left corner of the rectangle.\r\n\t\t// @property max: Point\r\n\t\t// The bottom right corner of the rectangle.\r\n\t\tif (!this.min && !this.max) {\r\n\t\t\tthis.min = point.clone();\r\n\t\t\tthis.max = point.clone();\r\n\t\t} else {\r\n\t\t\tthis.min.x = Math.min(point.x, this.min.x);\r\n\t\t\tthis.max.x = Math.max(point.x, this.max.x);\r\n\t\t\tthis.min.y = Math.min(point.y, this.min.y);\r\n\t\t\tthis.max.y = Math.max(point.y, this.max.y);\r\n\t\t}\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method getCenter(round?: Boolean): Point\r\n\t// Returns the center point of the bounds.\r\n\tgetCenter: function (round) {\r\n\t\treturn new Point(\r\n\t\t (this.min.x + this.max.x) / 2,\r\n\t\t (this.min.y + this.max.y) / 2, round);\r\n\t},\r\n\r\n\t// @method getBottomLeft(): Point\r\n\t// Returns the bottom-left point of the bounds.\r\n\tgetBottomLeft: function () {\r\n\t\treturn new Point(this.min.x, this.max.y);\r\n\t},\r\n\r\n\t// @method getTopRight(): Point\r\n\t// Returns the top-right point of the bounds.\r\n\tgetTopRight: function () { // -> Point\r\n\t\treturn new Point(this.max.x, this.min.y);\r\n\t},\r\n\r\n\t// @method getTopLeft(): Point\r\n\t// Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).\r\n\tgetTopLeft: function () {\r\n\t\treturn this.min; // left, top\r\n\t},\r\n\r\n\t// @method getBottomRight(): Point\r\n\t// Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).\r\n\tgetBottomRight: function () {\r\n\t\treturn this.max; // right, bottom\r\n\t},\r\n\r\n\t// @method getSize(): Point\r\n\t// Returns the size of the given bounds\r\n\tgetSize: function () {\r\n\t\treturn this.max.subtract(this.min);\r\n\t},\r\n\r\n\t// @method contains(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle contains the given one.\r\n\t// @alternative\r\n\t// @method contains(point: Point): Boolean\r\n\t// Returns `true` if the rectangle contains the given point.\r\n\tcontains: function (obj) {\r\n\t\tvar min, max;\r\n\r\n\t\tif (typeof obj[0] === 'number' || obj instanceof Point) {\r\n\t\t\tobj = toPoint(obj);\r\n\t\t} else {\r\n\t\t\tobj = toBounds(obj);\r\n\t\t}\r\n\r\n\t\tif (obj instanceof Bounds) {\r\n\t\t\tmin = obj.min;\r\n\t\t\tmax = obj.max;\r\n\t\t} else {\r\n\t\t\tmin = max = obj;\r\n\t\t}\r\n\r\n\t\treturn (min.x >= this.min.x) &&\r\n\t\t (max.x <= this.max.x) &&\r\n\t\t (min.y >= this.min.y) &&\r\n\t\t (max.y <= this.max.y);\r\n\t},\r\n\r\n\t// @method intersects(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle intersects the given bounds. Two bounds\r\n\t// intersect if they have at least one point in common.\r\n\tintersects: function (bounds) { // (Bounds) -> Boolean\r\n\t\tbounds = toBounds(bounds);\r\n\r\n\t\tvar min = this.min,\r\n\t\t max = this.max,\r\n\t\t min2 = bounds.min,\r\n\t\t max2 = bounds.max,\r\n\t\t xIntersects = (max2.x >= min.x) && (min2.x <= max.x),\r\n\t\t yIntersects = (max2.y >= min.y) && (min2.y <= max.y);\r\n\r\n\t\treturn xIntersects && yIntersects;\r\n\t},\r\n\r\n\t// @method overlaps(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle overlaps the given bounds. Two bounds\r\n\t// overlap if their intersection is an area.\r\n\toverlaps: function (bounds) { // (Bounds) -> Boolean\r\n\t\tbounds = toBounds(bounds);\r\n\r\n\t\tvar min = this.min,\r\n\t\t max = this.max,\r\n\t\t min2 = bounds.min,\r\n\t\t max2 = bounds.max,\r\n\t\t xOverlaps = (max2.x > min.x) && (min2.x < max.x),\r\n\t\t yOverlaps = (max2.y > min.y) && (min2.y < max.y);\r\n\r\n\t\treturn xOverlaps && yOverlaps;\r\n\t},\r\n\r\n\tisValid: function () {\r\n\t\treturn !!(this.min && this.max);\r\n\t}\r\n};\r\n\r\n\r\n// @factory L.bounds(corner1: Point, corner2: Point)\r\n// Creates a Bounds object from two corners coordinate pairs.\r\n// @alternative\r\n// @factory L.bounds(points: Point[])\r\n// Creates a Bounds object from the given array of points.\r\nfunction toBounds(a, b) {\r\n\tif (!a || a instanceof Bounds) {\r\n\t\treturn a;\r\n\t}\r\n\treturn new Bounds(a, b);\r\n}\n\n/*\r\n * @class LatLngBounds\r\n * @aka L.LatLngBounds\r\n *\r\n * Represents a rectangular geographical area on a map.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var corner1 = L.latLng(40.712, -74.227),\r\n * corner2 = L.latLng(40.774, -74.125),\r\n * bounds = L.latLngBounds(corner1, corner2);\r\n * ```\r\n *\r\n * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:\r\n *\r\n * ```js\r\n * map.fitBounds([\r\n * \t[40.712, -74.227],\r\n * \t[40.774, -74.125]\r\n * ]);\r\n * ```\r\n *\r\n * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.\r\n *\r\n * Note that `LatLngBounds` does not inherit from Leafet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction LatLngBounds(corner1, corner2) { // (LatLng, LatLng) or (LatLng[])\r\n\tif (!corner1) { return; }\r\n\r\n\tvar latlngs = corner2 ? [corner1, corner2] : corner1;\r\n\r\n\tfor (var i = 0, len = latlngs.length; i < len; i++) {\r\n\t\tthis.extend(latlngs[i]);\r\n\t}\r\n}\r\n\r\nLatLngBounds.prototype = {\r\n\r\n\t// @method extend(latlng: LatLng): this\r\n\t// Extend the bounds to contain the given point\r\n\r\n\t// @alternative\r\n\t// @method extend(otherBounds: LatLngBounds): this\r\n\t// Extend the bounds to contain the given bounds\r\n\textend: function (obj) {\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2, ne2;\r\n\r\n\t\tif (obj instanceof LatLng) {\r\n\t\t\tsw2 = obj;\r\n\t\t\tne2 = obj;\r\n\r\n\t\t} else if (obj instanceof LatLngBounds) {\r\n\t\t\tsw2 = obj._southWest;\r\n\t\t\tne2 = obj._northEast;\r\n\r\n\t\t\tif (!sw2 || !ne2) { return this; }\r\n\r\n\t\t} else {\r\n\t\t\treturn obj ? this.extend(toLatLng(obj) || toLatLngBounds(obj)) : this;\r\n\t\t}\r\n\r\n\t\tif (!sw && !ne) {\r\n\t\t\tthis._southWest = new LatLng(sw2.lat, sw2.lng);\r\n\t\t\tthis._northEast = new LatLng(ne2.lat, ne2.lng);\r\n\t\t} else {\r\n\t\t\tsw.lat = Math.min(sw2.lat, sw.lat);\r\n\t\t\tsw.lng = Math.min(sw2.lng, sw.lng);\r\n\t\t\tne.lat = Math.max(ne2.lat, ne.lat);\r\n\t\t\tne.lng = Math.max(ne2.lng, ne.lng);\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t// @method pad(bufferRatio: Number): LatLngBounds\r\n\t// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.\r\n\t// For example, a ratio of 0.5 extends the bounds by 50% in each direction.\r\n\t// Negative values will retract the bounds.\r\n\tpad: function (bufferRatio) {\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio,\r\n\t\t widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio;\r\n\r\n\t\treturn new LatLngBounds(\r\n\t\t new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer),\r\n\t\t new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer));\r\n\t},\r\n\r\n\t// @method getCenter(): LatLng\r\n\t// Returns the center point of the bounds.\r\n\tgetCenter: function () {\r\n\t\treturn new LatLng(\r\n\t\t (this._southWest.lat + this._northEast.lat) / 2,\r\n\t\t (this._southWest.lng + this._northEast.lng) / 2);\r\n\t},\r\n\r\n\t// @method getSouthWest(): LatLng\r\n\t// Returns the south-west point of the bounds.\r\n\tgetSouthWest: function () {\r\n\t\treturn this._southWest;\r\n\t},\r\n\r\n\t// @method getNorthEast(): LatLng\r\n\t// Returns the north-east point of the bounds.\r\n\tgetNorthEast: function () {\r\n\t\treturn this._northEast;\r\n\t},\r\n\r\n\t// @method getNorthWest(): LatLng\r\n\t// Returns the north-west point of the bounds.\r\n\tgetNorthWest: function () {\r\n\t\treturn new LatLng(this.getNorth(), this.getWest());\r\n\t},\r\n\r\n\t// @method getSouthEast(): LatLng\r\n\t// Returns the south-east point of the bounds.\r\n\tgetSouthEast: function () {\r\n\t\treturn new LatLng(this.getSouth(), this.getEast());\r\n\t},\r\n\r\n\t// @method getWest(): Number\r\n\t// Returns the west longitude of the bounds\r\n\tgetWest: function () {\r\n\t\treturn this._southWest.lng;\r\n\t},\r\n\r\n\t// @method getSouth(): Number\r\n\t// Returns the south latitude of the bounds\r\n\tgetSouth: function () {\r\n\t\treturn this._southWest.lat;\r\n\t},\r\n\r\n\t// @method getEast(): Number\r\n\t// Returns the east longitude of the bounds\r\n\tgetEast: function () {\r\n\t\treturn this._northEast.lng;\r\n\t},\r\n\r\n\t// @method getNorth(): Number\r\n\t// Returns the north latitude of the bounds\r\n\tgetNorth: function () {\r\n\t\treturn this._northEast.lat;\r\n\t},\r\n\r\n\t// @method contains(otherBounds: LatLngBounds): Boolean\r\n\t// Returns `true` if the rectangle contains the given one.\r\n\r\n\t// @alternative\r\n\t// @method contains (latlng: LatLng): Boolean\r\n\t// Returns `true` if the rectangle contains the given point.\r\n\tcontains: function (obj) { // (LatLngBounds) or (LatLng) -> Boolean\r\n\t\tif (typeof obj[0] === 'number' || obj instanceof LatLng || 'lat' in obj) {\r\n\t\t\tobj = toLatLng(obj);\r\n\t\t} else {\r\n\t\t\tobj = toLatLngBounds(obj);\r\n\t\t}\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2, ne2;\r\n\r\n\t\tif (obj instanceof LatLngBounds) {\r\n\t\t\tsw2 = obj.getSouthWest();\r\n\t\t\tne2 = obj.getNorthEast();\r\n\t\t} else {\r\n\t\t\tsw2 = ne2 = obj;\r\n\t\t}\r\n\r\n\t\treturn (sw2.lat >= sw.lat) && (ne2.lat <= ne.lat) &&\r\n\t\t (sw2.lng >= sw.lng) && (ne2.lng <= ne.lng);\r\n\t},\r\n\r\n\t// @method intersects(otherBounds: LatLngBounds): Boolean\r\n\t// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.\r\n\tintersects: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2 = bounds.getSouthWest(),\r\n\t\t ne2 = bounds.getNorthEast(),\r\n\r\n\t\t latIntersects = (ne2.lat >= sw.lat) && (sw2.lat <= ne.lat),\r\n\t\t lngIntersects = (ne2.lng >= sw.lng) && (sw2.lng <= ne.lng);\r\n\r\n\t\treturn latIntersects && lngIntersects;\r\n\t},\r\n\r\n\t// @method overlaps(otherBounds: Bounds): Boolean\r\n\t// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.\r\n\toverlaps: function (bounds) {\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\tvar sw = this._southWest,\r\n\t\t ne = this._northEast,\r\n\t\t sw2 = bounds.getSouthWest(),\r\n\t\t ne2 = bounds.getNorthEast(),\r\n\r\n\t\t latOverlaps = (ne2.lat > sw.lat) && (sw2.lat < ne.lat),\r\n\t\t lngOverlaps = (ne2.lng > sw.lng) && (sw2.lng < ne.lng);\r\n\r\n\t\treturn latOverlaps && lngOverlaps;\r\n\t},\r\n\r\n\t// @method toBBoxString(): String\r\n\t// Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.\r\n\ttoBBoxString: function () {\r\n\t\treturn [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(',');\r\n\t},\r\n\r\n\t// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean\r\n\t// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.\r\n\tequals: function (bounds, maxMargin) {\r\n\t\tif (!bounds) { return false; }\r\n\r\n\t\tbounds = toLatLngBounds(bounds);\r\n\r\n\t\treturn this._southWest.equals(bounds.getSouthWest(), maxMargin) &&\r\n\t\t this._northEast.equals(bounds.getNorthEast(), maxMargin);\r\n\t},\r\n\r\n\t// @method isValid(): Boolean\r\n\t// Returns `true` if the bounds are properly initialized.\r\n\tisValid: function () {\r\n\t\treturn !!(this._southWest && this._northEast);\r\n\t}\r\n};\r\n\r\n// TODO International date line?\r\n\r\n// @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)\r\n// Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.\r\n\r\n// @alternative\r\n// @factory L.latLngBounds(latlngs: LatLng[])\r\n// Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).\r\nfunction toLatLngBounds(a, b) {\r\n\tif (a instanceof LatLngBounds) {\r\n\t\treturn a;\r\n\t}\r\n\treturn new LatLngBounds(a, b);\r\n}\n\n/* @class LatLng\r\n * @aka L.LatLng\r\n *\r\n * Represents a geographical point with a certain latitude and longitude.\r\n *\r\n * @example\r\n *\r\n * ```\r\n * var latlng = L.latLng(50.5, 30.5);\r\n * ```\r\n *\r\n * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:\r\n *\r\n * ```\r\n * map.panTo([50, 30]);\r\n * map.panTo({lon: 30, lat: 50});\r\n * map.panTo({lat: 50, lng: 30});\r\n * map.panTo(L.latLng(50, 30));\r\n * ```\r\n *\r\n * Note that `LatLng` does not inherit from Leaflet's `Class` object,\r\n * which means new classes can't inherit from it, and new methods\r\n * can't be added to it with the `include` function.\r\n */\r\n\r\nfunction LatLng(lat, lng, alt) {\r\n\tif (isNaN(lat) || isNaN(lng)) {\r\n\t\tthrow new Error('Invalid LatLng object: (' + lat + ', ' + lng + ')');\r\n\t}\r\n\r\n\t// @property lat: Number\r\n\t// Latitude in degrees\r\n\tthis.lat = +lat;\r\n\r\n\t// @property lng: Number\r\n\t// Longitude in degrees\r\n\tthis.lng = +lng;\r\n\r\n\t// @property alt: Number\r\n\t// Altitude in meters (optional)\r\n\tif (alt !== undefined) {\r\n\t\tthis.alt = +alt;\r\n\t}\r\n}\r\n\r\nLatLng.prototype = {\r\n\t// @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean\r\n\t// Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.\r\n\tequals: function (obj, maxMargin) {\r\n\t\tif (!obj) { return false; }\r\n\r\n\t\tobj = toLatLng(obj);\r\n\r\n\t\tvar margin = Math.max(\r\n\t\t Math.abs(this.lat - obj.lat),\r\n\t\t Math.abs(this.lng - obj.lng));\r\n\r\n\t\treturn margin <= (maxMargin === undefined ? 1.0E-9 : maxMargin);\r\n\t},\r\n\r\n\t// @method toString(): String\r\n\t// Returns a string representation of the point (for debugging purposes).\r\n\ttoString: function (precision) {\r\n\t\treturn 'LatLng(' +\r\n\t\t formatNum(this.lat, precision) + ', ' +\r\n\t\t formatNum(this.lng, precision) + ')';\r\n\t},\r\n\r\n\t// @method distanceTo(otherLatLng: LatLng): Number\r\n\t// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).\r\n\tdistanceTo: function (other) {\r\n\t\treturn Earth.distance(this, toLatLng(other));\r\n\t},\r\n\r\n\t// @method wrap(): LatLng\r\n\t// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.\r\n\twrap: function () {\r\n\t\treturn Earth.wrapLatLng(this);\r\n\t},\r\n\r\n\t// @method toBounds(sizeInMeters: Number): LatLngBounds\r\n\t// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.\r\n\ttoBounds: function (sizeInMeters) {\r\n\t\tvar latAccuracy = 180 * sizeInMeters / 40075017,\r\n\t\t lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);\r\n\r\n\t\treturn toLatLngBounds(\r\n\t\t [this.lat - latAccuracy, this.lng - lngAccuracy],\r\n\t\t [this.lat + latAccuracy, this.lng + lngAccuracy]);\r\n\t},\r\n\r\n\tclone: function () {\r\n\t\treturn new LatLng(this.lat, this.lng, this.alt);\r\n\t}\r\n};\r\n\r\n\r\n\r\n// @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng\r\n// Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).\r\n\r\n// @alternative\r\n// @factory L.latLng(coords: Array): LatLng\r\n// Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.\r\n\r\n// @alternative\r\n// @factory L.latLng(coords: Object): LatLng\r\n// Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.\r\n\r\nfunction toLatLng(a, b, c) {\r\n\tif (a instanceof LatLng) {\r\n\t\treturn a;\r\n\t}\r\n\tif (isArray(a) && typeof a[0] !== 'object') {\r\n\t\tif (a.length === 3) {\r\n\t\t\treturn new LatLng(a[0], a[1], a[2]);\r\n\t\t}\r\n\t\tif (a.length === 2) {\r\n\t\t\treturn new LatLng(a[0], a[1]);\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\tif (a === undefined || a === null) {\r\n\t\treturn a;\r\n\t}\r\n\tif (typeof a === 'object' && 'lat' in a) {\r\n\t\treturn new LatLng(a.lat, 'lng' in a ? a.lng : a.lon, a.alt);\r\n\t}\r\n\tif (b === undefined) {\r\n\t\treturn null;\r\n\t}\r\n\treturn new LatLng(a, b, c);\r\n}\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.Base\r\n * Object that defines coordinate reference systems for projecting\r\n * geographical points into pixel (screen) coordinates and back (and to\r\n * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See\r\n * [spatial reference system](http://en.wikipedia.org/wiki/Coordinate_reference_system).\r\n *\r\n * Leaflet defines the most usual CRSs by default. If you want to use a\r\n * CRS not defined by default, take a look at the\r\n * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.\r\n *\r\n * Note that the CRS instances do not inherit from Leafet's `Class` object,\r\n * and can't be instantiated. Also, new classes can't inherit from them,\r\n * and methods can't be added to them with the `include` function.\r\n */\r\n\r\nvar CRS = {\r\n\t// @method latLngToPoint(latlng: LatLng, zoom: Number): Point\r\n\t// Projects geographical coordinates into pixel coordinates for a given zoom.\r\n\tlatLngToPoint: function (latlng, zoom) {\r\n\t\tvar projectedPoint = this.projection.project(latlng),\r\n\t\t scale = this.scale(zoom);\r\n\r\n\t\treturn this.transformation._transform(projectedPoint, scale);\r\n\t},\r\n\r\n\t// @method pointToLatLng(point: Point, zoom: Number): LatLng\r\n\t// The inverse of `latLngToPoint`. Projects pixel coordinates on a given\r\n\t// zoom into geographical coordinates.\r\n\tpointToLatLng: function (point, zoom) {\r\n\t\tvar scale = this.scale(zoom),\r\n\t\t untransformedPoint = this.transformation.untransform(point, scale);\r\n\r\n\t\treturn this.projection.unproject(untransformedPoint);\r\n\t},\r\n\r\n\t// @method project(latlng: LatLng): Point\r\n\t// Projects geographical coordinates into coordinates in units accepted for\r\n\t// this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).\r\n\tproject: function (latlng) {\r\n\t\treturn this.projection.project(latlng);\r\n\t},\r\n\r\n\t// @method unproject(point: Point): LatLng\r\n\t// Given a projected coordinate returns the corresponding LatLng.\r\n\t// The inverse of `project`.\r\n\tunproject: function (point) {\r\n\t\treturn this.projection.unproject(point);\r\n\t},\r\n\r\n\t// @method scale(zoom: Number): Number\r\n\t// Returns the scale used when transforming projected coordinates into\r\n\t// pixel coordinates for a particular zoom. For example, it returns\r\n\t// `256 * 2^zoom` for Mercator-based CRS.\r\n\tscale: function (zoom) {\r\n\t\treturn 256 * Math.pow(2, zoom);\r\n\t},\r\n\r\n\t// @method zoom(scale: Number): Number\r\n\t// Inverse of `scale()`, returns the zoom level corresponding to a scale\r\n\t// factor of `scale`.\r\n\tzoom: function (scale) {\r\n\t\treturn Math.log(scale / 256) / Math.LN2;\r\n\t},\r\n\r\n\t// @method getProjectedBounds(zoom: Number): Bounds\r\n\t// Returns the projection's bounds scaled and transformed for the provided `zoom`.\r\n\tgetProjectedBounds: function (zoom) {\r\n\t\tif (this.infinite) { return null; }\r\n\r\n\t\tvar b = this.projection.bounds,\r\n\t\t s = this.scale(zoom),\r\n\t\t min = this.transformation.transform(b.min, s),\r\n\t\t max = this.transformation.transform(b.max, s);\r\n\r\n\t\treturn new Bounds(min, max);\r\n\t},\r\n\r\n\t// @method distance(latlng1: LatLng, latlng2: LatLng): Number\r\n\t// Returns the distance between two geographical coordinates.\r\n\r\n\t// @property code: String\r\n\t// Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)\r\n\t//\r\n\t// @property wrapLng: Number[]\r\n\t// An array of two numbers defining whether the longitude (horizontal) coordinate\r\n\t// axis wraps around a given range and how. Defaults to `[-180, 180]` in most\r\n\t// geographical CRSs. If `undefined`, the longitude axis does not wrap around.\r\n\t//\r\n\t// @property wrapLat: Number[]\r\n\t// Like `wrapLng`, but for the latitude (vertical) axis.\r\n\r\n\t// wrapLng: [min, max],\r\n\t// wrapLat: [min, max],\r\n\r\n\t// @property infinite: Boolean\r\n\t// If true, the coordinate space will be unbounded (infinite in both axes)\r\n\tinfinite: false,\r\n\r\n\t// @method wrapLatLng(latlng: LatLng): LatLng\r\n\t// Returns a `LatLng` where lat and lng has been wrapped according to the\r\n\t// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.\r\n\twrapLatLng: function (latlng) {\r\n\t\tvar lng = this.wrapLng ? wrapNum(latlng.lng, this.wrapLng, true) : latlng.lng,\r\n\t\t lat = this.wrapLat ? wrapNum(latlng.lat, this.wrapLat, true) : latlng.lat,\r\n\t\t alt = latlng.alt;\r\n\r\n\t\treturn new LatLng(lat, lng, alt);\r\n\t},\r\n\r\n\t// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds\r\n\t// Returns a `LatLngBounds` with the same size as the given one, ensuring\r\n\t// that its center is within the CRS's bounds.\r\n\t// Only accepts actual `L.LatLngBounds` instances, not arrays.\r\n\twrapLatLngBounds: function (bounds) {\r\n\t\tvar center = bounds.getCenter(),\r\n\t\t newCenter = this.wrapLatLng(center),\r\n\t\t latShift = center.lat - newCenter.lat,\r\n\t\t lngShift = center.lng - newCenter.lng;\r\n\r\n\t\tif (latShift === 0 && lngShift === 0) {\r\n\t\t\treturn bounds;\r\n\t\t}\r\n\r\n\t\tvar sw = bounds.getSouthWest(),\r\n\t\t ne = bounds.getNorthEast(),\r\n\t\t newSw = new LatLng(sw.lat - latShift, sw.lng - lngShift),\r\n\t\t newNe = new LatLng(ne.lat - latShift, ne.lng - lngShift);\r\n\r\n\t\treturn new LatLngBounds(newSw, newNe);\r\n\t}\r\n};\n\n/*\n * @namespace CRS\n * @crs L.CRS.Earth\n *\n * Serves as the base for CRS that are global such that they cover the earth.\n * Can only be used as the base for other CRS and cannot be used directly,\n * since it does not have a `code`, `projection` or `transformation`. `distance()` returns\n * meters.\n */\n\nvar Earth = extend({}, CRS, {\n\twrapLng: [-180, 180],\n\n\t// Mean Earth Radius, as recommended for use by\n\t// the International Union of Geodesy and Geophysics,\n\t// see http://rosettacode.org/wiki/Haversine_formula\n\tR: 6371000,\n\n\t// distance between two geographical points using spherical law of cosines approximation\n\tdistance: function (latlng1, latlng2) {\n\t\tvar rad = Math.PI / 180,\n\t\t lat1 = latlng1.lat * rad,\n\t\t lat2 = latlng2.lat * rad,\n\t\t sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2),\n\t\t sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2),\n\t\t a = sinDLat * sinDLat + Math.cos(lat1) * Math.cos(lat2) * sinDLon * sinDLon,\n\t\t c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\treturn this.R * c;\n\t}\n});\n\n/*\r\n * @namespace Projection\r\n * @projection L.Projection.SphericalMercator\r\n *\r\n * Spherical Mercator projection ā the most common projection for online maps,\r\n * used by almost all free and commercial tile providers. Assumes that Earth is\r\n * a sphere. Used by the `EPSG:3857` CRS.\r\n */\r\n\r\nvar earthRadius = 6378137;\r\n\r\nvar SphericalMercator = {\r\n\r\n\tR: earthRadius,\r\n\tMAX_LATITUDE: 85.0511287798,\r\n\r\n\tproject: function (latlng) {\r\n\t\tvar d = Math.PI / 180,\r\n\t\t max = this.MAX_LATITUDE,\r\n\t\t lat = Math.max(Math.min(max, latlng.lat), -max),\r\n\t\t sin = Math.sin(lat * d);\r\n\r\n\t\treturn new Point(\r\n\t\t\tthis.R * latlng.lng * d,\r\n\t\t\tthis.R * Math.log((1 + sin) / (1 - sin)) / 2);\r\n\t},\r\n\r\n\tunproject: function (point) {\r\n\t\tvar d = 180 / Math.PI;\r\n\r\n\t\treturn new LatLng(\r\n\t\t\t(2 * Math.atan(Math.exp(point.y / this.R)) - (Math.PI / 2)) * d,\r\n\t\t\tpoint.x * d / this.R);\r\n\t},\r\n\r\n\tbounds: (function () {\r\n\t\tvar d = earthRadius * Math.PI;\r\n\t\treturn new Bounds([-d, -d], [d, d]);\r\n\t})()\r\n};\n\n/*\r\n * @class Transformation\r\n * @aka L.Transformation\r\n *\r\n * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`\r\n * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing\r\n * the reverse. Used by Leaflet in its projections code.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * var transformation = L.transformation(2, 5, -1, 10),\r\n * \tp = L.point(1, 2),\r\n * \tp2 = transformation.transform(p), // L.point(7, 8)\r\n * \tp3 = transformation.untransform(p2); // L.point(1, 2)\r\n * ```\r\n */\r\n\r\n\r\n// factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)\r\n// Creates a `Transformation` object with the given coefficients.\r\nfunction Transformation(a, b, c, d) {\r\n\tif (isArray(a)) {\r\n\t\t// use array properties\r\n\t\tthis._a = a[0];\r\n\t\tthis._b = a[1];\r\n\t\tthis._c = a[2];\r\n\t\tthis._d = a[3];\r\n\t\treturn;\r\n\t}\r\n\tthis._a = a;\r\n\tthis._b = b;\r\n\tthis._c = c;\r\n\tthis._d = d;\r\n}\r\n\r\nTransformation.prototype = {\r\n\t// @method transform(point: Point, scale?: Number): Point\r\n\t// Returns a transformed point, optionally multiplied by the given scale.\r\n\t// Only accepts actual `L.Point` instances, not arrays.\r\n\ttransform: function (point, scale) { // (Point, Number) -> Point\r\n\t\treturn this._transform(point.clone(), scale);\r\n\t},\r\n\r\n\t// destructive transform (faster)\r\n\t_transform: function (point, scale) {\r\n\t\tscale = scale || 1;\r\n\t\tpoint.x = scale * (this._a * point.x + this._b);\r\n\t\tpoint.y = scale * (this._c * point.y + this._d);\r\n\t\treturn point;\r\n\t},\r\n\r\n\t// @method untransform(point: Point, scale?: Number): Point\r\n\t// Returns the reverse transformation of the given point, optionally divided\r\n\t// by the given scale. Only accepts actual `L.Point` instances, not arrays.\r\n\tuntransform: function (point, scale) {\r\n\t\tscale = scale || 1;\r\n\t\treturn new Point(\r\n\t\t (point.x / scale - this._b) / this._a,\r\n\t\t (point.y / scale - this._d) / this._c);\r\n\t}\r\n};\r\n\r\n// factory L.transformation(a: Number, b: Number, c: Number, d: Number)\r\n\r\n// @factory L.transformation(a: Number, b: Number, c: Number, d: Number)\r\n// Instantiates a Transformation object with the given coefficients.\r\n\r\n// @alternative\r\n// @factory L.transformation(coefficients: Array): Transformation\r\n// Expects an coefficients array of the form\r\n// `[a: Number, b: Number, c: Number, d: Number]`.\r\n\r\nfunction toTransformation(a, b, c, d) {\r\n\treturn new Transformation(a, b, c, d);\r\n}\n\n/*\r\n * @namespace CRS\r\n * @crs L.CRS.EPSG3857\r\n *\r\n * The most common CRS for online maps, used by almost all free and commercial\r\n * tile providers. Uses Spherical Mercator projection. Set in by default in\r\n * Map's `crs` option.\r\n */\r\n\r\nvar EPSG3857 = extend({}, Earth, {\r\n\tcode: 'EPSG:3857',\r\n\tprojection: SphericalMercator,\r\n\r\n\ttransformation: (function () {\r\n\t\tvar scale = 0.5 / (Math.PI * SphericalMercator.R);\r\n\t\treturn toTransformation(scale, 0.5, -scale, 0.5);\r\n\t}())\r\n});\r\n\r\nvar EPSG900913 = extend({}, EPSG3857, {\r\n\tcode: 'EPSG:900913'\r\n});\n\n// @namespace SVG; @section\n// There are several static functions which can be called without instantiating L.SVG:\n\n// @function create(name: String): SVGElement\n// Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),\n// corresponding to the class name passed. For example, using 'line' will return\n// an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).\nfunction svgCreate(name) {\n\treturn document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\n// @function pointsToPath(rings: Point[], closed: Boolean): String\n// Generates a SVG path string for multiple rings, with each ring turning\n// into \"M..L..L..\" instructions\nfunction pointsToPath(rings, closed) {\n\tvar str = '',\n\ti, j, len, len2, points, p;\n\n\tfor (i = 0, len = rings.length; i < len; i++) {\n\t\tpoints = rings[i];\n\n\t\tfor (j = 0, len2 = points.length; j < len2; j++) {\n\t\t\tp = points[j];\n\t\t\tstr += (j ? 'L' : 'M') + p.x + ' ' + p.y;\n\t\t}\n\n\t\t// closes the ring for polygons; \"x\" is VML syntax\n\t\tstr += closed ? (svg ? 'z' : 'x') : '';\n\t}\n\n\t// SVG complains about empty path strings\n\treturn str || 'M0 0';\n}\n\n/*\r\n * @namespace Browser\r\n * @aka L.Browser\r\n *\r\n * A namespace with static properties for browser/feature detection used by Leaflet internally.\r\n *\r\n * @example\r\n *\r\n * ```js\r\n * if (L.Browser.ielt9) {\r\n * alert('Upgrade your browser, dude!');\r\n * }\r\n * ```\r\n */\r\n\r\nvar style$1 = document.documentElement.style;\r\n\r\n// @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).\r\nvar ie = 'ActiveXObject' in window;\r\n\r\n// @property ielt9: Boolean; `true` for Internet Explorer versions less than 9.\r\nvar ielt9 = ie && !document.addEventListener;\r\n\r\n// @property edge: Boolean; `true` for the Edge web browser.\r\nvar edge = 'msLaunchUri' in navigator && !('documentMode' in document);\r\n\r\n// @property webkit: Boolean;\r\n// `true` for webkit-based browsers like Chrome and Safari (including mobile versions).\r\nvar webkit = userAgentContains('webkit');\r\n\r\n// @property android: Boolean\r\n// `true` for any browser running on an Android platform.\r\nvar android = userAgentContains('android');\r\n\r\n// @property android23: Boolean; `true` for browsers running on Android 2 or Android 3.\r\nvar android23 = userAgentContains('android 2') || userAgentContains('android 3');\r\n\r\n/* See https://stackoverflow.com/a/17961266 for details on detecting stock Android */\r\nvar webkitVer = parseInt(/WebKit\\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10); // also matches AppleWebKit\r\n// @property androidStock: Boolean; `true` for the Android stock browser (i.e. not Chrome)\r\nvar androidStock = android && userAgentContains('Google') && webkitVer < 537 && !('AudioNode' in window);\r\n\r\n// @property opera: Boolean; `true` for the Opera browser\r\nvar opera = !!window.opera;\r\n\r\n// @property chrome: Boolean; `true` for the Chrome browser.\r\nvar chrome = userAgentContains('chrome');\r\n\r\n// @property gecko: Boolean; `true` for gecko-based browsers like Firefox.\r\nvar gecko = userAgentContains('gecko') && !webkit && !opera && !ie;\r\n\r\n// @property safari: Boolean; `true` for the Safari browser.\r\nvar safari = !chrome && userAgentContains('safari');\r\n\r\nvar phantom = userAgentContains('phantom');\r\n\r\n// @property opera12: Boolean\r\n// `true` for the Opera browser supporting CSS transforms (version 12 or later).\r\nvar opera12 = 'OTransition' in style$1;\r\n\r\n// @property win: Boolean; `true` when the browser is running in a Windows platform\r\nvar win = navigator.platform.indexOf('Win') === 0;\r\n\r\n// @property ie3d: Boolean; `true` for all Internet Explorer versions supporting CSS transforms.\r\nvar ie3d = ie && ('transition' in style$1);\r\n\r\n// @property webkit3d: Boolean; `true` for webkit-based browsers supporting CSS transforms.\r\nvar webkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()) && !android23;\r\n\r\n// @property gecko3d: Boolean; `true` for gecko-based browsers supporting CSS transforms.\r\nvar gecko3d = 'MozPerspective' in style$1;\r\n\r\n// @property any3d: Boolean\r\n// `true` for all browsers supporting CSS transforms.\r\nvar any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d) && !opera12 && !phantom;\r\n\r\n// @property mobile: Boolean; `true` for all browsers running in a mobile device.\r\nvar mobile = typeof orientation !== 'undefined' || userAgentContains('mobile');\r\n\r\n// @property mobileWebkit: Boolean; `true` for all webkit-based browsers in a mobile device.\r\nvar mobileWebkit = mobile && webkit;\r\n\r\n// @property mobileWebkit3d: Boolean\r\n// `true` for all webkit-based browsers in a mobile device supporting CSS transforms.\r\nvar mobileWebkit3d = mobile && webkit3d;\r\n\r\n// @property msPointer: Boolean\r\n// `true` for browsers implementing the Microsoft touch events model (notably IE10).\r\nvar msPointer = !window.PointerEvent && window.MSPointerEvent;\r\n\r\n// @property pointer: Boolean\r\n// `true` for all browsers supporting [pointer events](https://msdn.microsoft.com/en-us/library/dn433244%28v=vs.85%29.aspx).\r\nvar pointer = !webkit && !!(window.PointerEvent || msPointer);\r\n\r\n// @property touch: Boolean\r\n// `true` for all browsers supporting [touch events](https://developer.mozilla.org/docs/Web/API/Touch_events).\r\n// This does not necessarily mean that the browser is running in a computer with\r\n// a touchscreen, it only means that the browser is capable of understanding\r\n// touch events.\r\nvar touch = !window.L_NO_TOUCH && (pointer || 'ontouchstart' in window ||\r\n\t\t(window.DocumentTouch && document instanceof window.DocumentTouch));\r\n\r\n// @property mobileOpera: Boolean; `true` for the Opera browser in a mobile device.\r\nvar mobileOpera = mobile && opera;\r\n\r\n// @property mobileGecko: Boolean\r\n// `true` for gecko-based browsers running in a mobile device.\r\nvar mobileGecko = mobile && gecko;\r\n\r\n// @property retina: Boolean\r\n// `true` for browsers on a high-resolution \"retina\" screen or on any screen when browser's display zoom is more than 100%.\r\nvar retina = (window.devicePixelRatio || (window.screen.deviceXDPI / window.screen.logicalXDPI)) > 1;\r\n\r\n// @property passiveEvents: Boolean\r\n// `true` for browsers that support passive events.\r\nvar passiveEvents = (function () {\r\n\tvar supportsPassiveOption = false;\r\n\ttry {\r\n\t\tvar opts = Object.defineProperty({}, 'passive', {\r\n\t\t\tget: function () {\r\n\t\t\t\tsupportsPassiveOption = true;\r\n\t\t\t}\r\n\t\t});\r\n\t\twindow.addEventListener('testPassiveEventSupport', falseFn, opts);\r\n\t\twindow.removeEventListener('testPassiveEventSupport', falseFn, opts);\r\n\t} catch (e) {\r\n\t\t// Errors can safely be ignored since this is only a browser support test.\r\n\t}\r\n\treturn supportsPassiveOption;\r\n});\r\n\r\n// @property canvas: Boolean\r\n// `true` when the browser supports [`