{"version":3,"sources":["webpack:///../../../src/components/VGrid/VFlex.ts","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditableMap.vue?a858","webpack:///node_modules/vue2-leaflet-editable/src/components/EditableMap.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditableMap.vue?9efb","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditableMap.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditablePolygon.vue?5d48","webpack:///./node_modules/vue2-leaflet-editable/src/mixins/index.js","webpack:///node_modules/vue2-leaflet-editable/src/components/EditablePolygon.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditablePolygon.vue?cd2e","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditablePolygon.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditableRectangle.vue?dae2","webpack:///node_modules/vue2-leaflet-editable/src/components/EditableRectangle.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditableRectangle.vue?820e","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditableRectangle.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditablePolyline.vue?557a","webpack:///node_modules/vue2-leaflet-editable/src/components/EditablePolyline.vue","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditablePolyline.vue?2222","webpack:///./node_modules/vue2-leaflet-editable/src/components/EditablePolyline.vue","webpack:///./node_modules/vue2-leaflet/dist/components/LControl.js","webpack:///./node_modules/leaflet.markercluster/dist/leaflet.markercluster-src.js","webpack:///./node_modules/vue2-leaflet/dist/components/LPolygon.js","webpack:///../../../src/components/VSnackbar/VSnackbar.ts","webpack:///./src/assets/activo.png","webpack:///./node_modules/vue2-leaflet/dist/components/LPolyline.js","webpack:///./node_modules/leaflet-editable/src/Leaflet.Editable.js","webpack:///./node_modules/vue2-leaflet/dist/utils/utils.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Circle.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Control.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/GridLayer.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/ImageOverlay.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/InteractiveLayer.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Layer.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/LayerGroup.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Options.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Path.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Polygon.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Polyline.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/Popper.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/TileLayer.js","webpack:///./node_modules/vue2-leaflet/dist/mixins/TileLayerWMS.js","webpack:///./node_modules/vue2-leaflet/dist/components/LCircle.js","webpack:///./node_modules/vue2-leaflet/dist/components/LCircleMarker.js","webpack:///./node_modules/vue2-leaflet/dist/components/LControlAttribution.js","webpack:///./node_modules/vue2-leaflet/dist/components/LControlLayers.js","webpack:///./node_modules/vue2-leaflet/dist/components/LControlScale.js","webpack:///./node_modules/vue2-leaflet/dist/components/LFeatureGroup.js","webpack:///./node_modules/vue2-leaflet/dist/components/LGeoJson.js","webpack:///./node_modules/vue2-leaflet/dist/components/LGridLayer.js","webpack:///./node_modules/vue2-leaflet/dist/components/LIcon.js","webpack:///./node_modules/vue2-leaflet/dist/components/LIconDefault.js","webpack:///./node_modules/vue2-leaflet/dist/components/LImageOverlay.js","webpack:///./node_modules/vue2-leaflet/dist/components/LLayerGroup.js","webpack:///./node_modules/vue2-leaflet/dist/components/LTooltip.js","webpack:///./node_modules/vue2-leaflet/dist/components/LWMSTileLayer.js","webpack:///./node_modules/vue2-leaflet/dist/components/LControlZoom.js","webpack:///./node_modules/vue2-leaflet-markercluster/dist/Vue2LeafletMarkercluster.js","webpack:///./node_modules/vue2-leaflet/dist/components/LPopup.js","webpack:///./node_modules/vue2-leaflet/dist/components/LRectangle.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_t","_e","staticRenderFns","Boolean","name","extends","LMap","props","editable","type","default","beforeMount","options","component","staticStyle","custom","methods","enable","mapObject","enableEdit","disableEdit","toggleEdit","setEditable","watch","v","LPolygon","mixins","LRectangle","LPolyline","capitalizeFirstLetter","string","charAt","toUpperCase","slice","propsBinder","vueElement","leafletElement","loop","key","setMethodName","deepValue","Object","Array","isArray","$watch","newVal","oldVal","deep","collectionCleaner","result","value","undefined","optionsMerger","instance","constructor","defaultProps","$options","def","call","Symbol","isEqual","JSON","stringify","console","warn","findRealParent","firstVueParent","found","$parent","ControlMixin","position","String","mounted","controlOptions","beforeDestroy","remove","Options","script","disableClickPropagation","disableScrollPropagation","this$1","LControl","extend","element","onAdd","setElement","el","parentContainer","$el","addTo","$nextTick","$emit","normalizeComponent","template","style","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","shadowRoot","originalRender","h","existing","beforeCreate","concat","__vue_script__","__vue_render__","__vue_staticRenderFns__","__vue_inject_styles__","__vue_scope_id__","__vue_module_identifier__","__vue_is_functional_template__","__vue_component__","global","factory","exports","MarkerClusterGroup","L","FeatureGroup","maxClusterRadius","iconCreateFunction","clusterPane","Marker","prototype","pane","spiderfyOnMaxZoom","showCoverageOnHover","zoomToBoundsOnClick","singleMarkerMode","disableClusteringAtZoom","removeOutsideVisibleBounds","animate","animateAddingMarkers","spiderfyShapePositions","spiderfyDistanceMultiplier","spiderLegPolylineOptions","weight","color","opacity","chunkedLoading","chunkInterval","chunkDelay","chunkProgress","polygonOptions","initialize","Util","setOptions","_defaultIconCreateFunction","_featureGroup","featureGroup","addEventParent","_nonPointGroup","_inZoomAnimation","_needsClustering","_needsRemoving","_currentShownBounds","_queue","_childMarkerEventHandlers","_childMarkerDragStart","_childMarkerMoved","_childMarkerDragEnd","DomUtil","TRANSITION","_withAnimation","_noAnimation","_markerCluster","MarkerCluster","MarkerClusterNonAnimated","addLayer","layer","LayerGroup","addLayers","getLatLng","fire","_map","push","hasLayer","_unspiderfy","_addLayer","_maxZoom","_topClusterLevel","_recalculateBounds","_refreshClustersIcons","visibleLayer","currentZoom","_zoom","__parent","contains","_animationAddLayer","_animationAddLayerNonAnimated","removeLayer","removeLayers","_unspiderfyLayer","_removeLayer","off","clusterShow","_arraySplice","latlng","_latlng","layersArray","skipLayerAddEvent","m","fg","npg","chunked","l","length","offset","originalArray","started","Date","getTime","process","bind","start","elapsed","_extractNonGroupLayers","getChildCount","markers","getAllChildMarkers","otherMarker","_recursivelyAddChildrenToMap","setTimeout","needsClustering","i","layersArray2","l2","clearLayers","_gridClusters","_gridUnclustered","_noanimationUnspiderfy","eachLayer","marker","_generateInitialClusters","getBounds","bounds","LatLngBounds","_bounds","method","thisNeedsRemoving","j","needsRemoving","getLayers","layers","getLayer","id","parseInt","stamp","anArray","_group","zoomToShowLayer","callback","map","showMarker","_icon","once","spiderfy","Math","round","on","panTo","zoomToBounds","isFinite","getMaxZoom","_maxLat","crs","projection","MAX_LATITUDE","newlatlng","_getExpandedVisibleBounds","_zoomEnd","_moveEnd","_spiderfierOnAdd","_bindEvents","onRemove","_unbindEvents","_mapPane","className","replace","_spiderfierOnRemove","_hideCoverage","getVisibleParent","vMarker","obj","splice","_removeFromGridUnclustered","z","gridUnclustered","minZoom","floor","getMinZoom","removeObject","project","e","target","__dragStart","_ignoreMove","isPopupOpen","_popup","isOpen","_moveChild","oldLatLng","openPopup","from","to","dragStart","removeFromDistanceGrid","dontUpdateMap","gridClusters","cluster","_markers","_childCount","_boundsNeedUpdate","_cLatLng","addObject","_childClusters","_iconNeedsUpdate","_isOrIsParent","oel","parentNode","data","propagate","originalEvent","relatedTarget","listens","childCount","c","DivIcon","html","iconSize","Point","_zoomOrSpiderfy","_showCoverage","bottomCluster","keyCode","_container","focus","_shownPolygon","_spiderfied","Polygon","getConvexHull","_mergeSplitClusters","newBounds","_recursivelyRemoveChildrenFromMap","maxZoom","ceil","radius","radiusFn","zoom","DistanceGrid","markerPoint","_overrideMarkerIcon","closest","getNearObject","_addChild","newCluster","lastParent","_updateIcon","_enqueue","fn","_queueTimeout","_processQueue","clearTimeout","mapZoom","intersects","_animationStart","_animationZoomIn","_animationZoomOut","Browser","mobile","_checkBoundsMaxLat","pad","_mapBoundsInfinite","maxLat","getNorth","_northEast","lat","Infinity","getSouth","_southWest","_addToMap","group","output","icon","include","LatLng","previousZoomLevel","newZoomLevel","_recursively","startPos","_isSingleParent","clusterHide","_forceLayout","_recursivelyBecomeVisible","n","_recursivelyRestoreChildPositions","_animationEnd","_animationZoomOutSingle","me","_setPos","latLngToLayerPoint","_recursivelyAnimateChildrenInAndAddSelfToMap","setLatLng","falseFn","document","body","offsetWidth","markerClusterGroup","Icon","a","b","storageArray","ignoreDraggedMarker","fitBoundsOptions","childClusters","boundsZoom","getBoundsZoom","getZoom","newClusters","setView","fitBounds","setIcon","createIcon","_iconObj","createShadow","new1","isNotificationFromChild","_setClusterCenter","child","_resetBounds","lng","childLatLng","latSum","lngSum","totalCount","_wLatLng","_backupLatlng","_recursivelyAnimateChildrenIn","center","cm","mapMinZoom","zoomLevel","nm","_restorePosition","k","previousBounds","exceptBounds","boundsToApplyTo","zoomLevelToStart","zoomLevelToStop","runAtEveryLevel","runAtBottomLevel","backup","setOpacity","cellSize","_cellSize","_sqCellSize","_grid","_objectPoint","point","x","_getCoord","y","grid","row","cell","updateObject","len","eachObject","removed","dist","objectPoint","closestDistSq","_sqDist","coord","p","p2","dx","dy","QuickHull","getDistant","cpt","bl","vY","vX","findMostDistantPointFromBaseLine","baseLine","latLngs","pt","d","maxD","maxPt","newPoints","maxPoint","buildConvexHull","convexHullBaseLines","t","minLat","maxLng","minLng","maxLatPt","minLatPt","maxLngPt","minLngPt","minPt","ch","childMarkers","points","_2PI","PI","_circleFootSeparation","_circleStartAngle","_spiralFootSeparation","_spiralLengthStart","_spiralLengthFactor","_circleSpiralSwitchover","positions","_generatePointsSpiral","_generatePointsCircle","_animationSpiderfy","unspiderfy","zoomDetails","_animationUnspiderfy","count","centerPt","angle","circumference","legLength","angleStep","res","max","cos","sin","_round","separation","lengthFactor","_preSpiderfyLatlng","setZIndexOffset","_spiderLeg","leg","newPos","legOptions","layerPointToLatLng","Polyline","legPath","thisLayerLatLng","thisLayerPos","svg","Path","SVG","finalLegOpacity","_path","getTotalLength","strokeDasharray","strokeDashoffset","setStyle","nonAnimatable","_latLngToNewLayerPoint","closePopup","stillThereChildCount","apply","arguments","_unspiderfyWrapper","zoomAnimation","_unspiderfyZoomStart","touch","getRenderer","_unspiderfyZoomAnim","hasClass","refreshClusters","_layers","_flagParentsIconsNeedUpdate","_refreshSingleMarkerModeMarkers","refreshIconOptions","directlyRefreshClusters","defineProperty","Layer","attribution","layerType","visible","layerOptions","unbindPopup","unbindTooltip","setAttribution","val","old","attributionControl","removeAttribution","addAttribution","setName","setLayerType","setVisible","isVisible","hideLayer","tooltip","getTooltip","popup","getPopup","updateVisibleProp","InteractiveLayer","interactive","bubblingMouseEvents","interactiveLayerOptions","lStyle","stroke","Number","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","pathOptions","assign","error","setLStyle","setStroke","setColor","setWeight","setLineCap","setLineJoin","setDashArray","setDashOffset","setFill","setFillColor","setFillOpacity","setFillRule","setClassName","smoothFactor","noClip","ready","polyLineOptions","setSmoothFactor","setNoClip","addLatLng","PolygonMixin","getGeoJSONData","toGeoJSON","$listeners","app","centered","contentClass","multiLine","text","timeout","transition","validator","vertical","activeTimeout","computed","classes","bottom","hasBackground","isDark","styles","$vuetify","top","paddingBottom","paddingLeft","paddingRight","paddingTop","bar","isActive","created","$attrs","hasOwnProperty","genActions","attrs","class","genContent","role","genWrapper","directives","genTransition","window","module","PolylineMixin","Editable","Evented","statics","FORWARD","BACKWARD","zIndex","polygonClass","polylineClass","markerClass","rectangleClass","Rectangle","circleClass","Circle","drawingCSSClass","drawingCursor","editLayer","featuresLayer","polylineEditorClass","polygonEditorClass","markerEditorClass","rectangleEditorClass","circleEditorClass","lineGuideOptions","skipMiddleMarkers","_lastZIndex","createEditLayer","createFeaturesLayer","forwardLineGuide","createLineGuide","backwardLineGuide","fireAndForward","editTools","polyline","createVertexIcon","TouchVertexIcon","VertexIcon","moveForwardLineGuide","_latlngs","redraw","moveBackwardLineGuide","anchorForwardLineGuide","anchorBackwardLineGuide","attachForwardLineGuide","attachBackwardLineGuide","detachForwardLineGuide","setLatLngs","detachBackwardLineGuide","blockEvents","_oldTargets","_targets","unblockEvents","registerForDrawing","editor","_drawingEditor","unregisterForDrawing","reset","onDrawingMouseMove","onMousedown","onMouseup","addClass","defaultMapCursor","cursor","removeClass","_drawing","cancelDrawing","which","_mouseDown","onDrawingMouseDown","mouseDown","onDrawingMouseUp","origin","clientX","clientY","distance","distanceTo","abs","devicePixelRatio","onDrawingClick","drawing","stopDrawing","commitDrawing","connectCreatedToMap","startPolyline","line","createPolyline","newShape","startPolygon","polygon","createPolygon","startMarker","getCenter","clone","createMarker","startDrawing","startRectangle","corner","latLng","rectangle","createRectangle","startCircle","circle","createCircle","startHole","newHole","createLayer","klass","latlngs","editOptions","makeCancellable","cancel","_cancelled","Map","mergeOptions","editToolsClass","addInitHook","whenReady","VertexMarker","draggable","tools","__vertex","onDrag","onDragStart","onDragEnd","onClick","onContextMenu","onMouseDown","onMouseOver","onMouseOut","addMiddleMarkers","middleMarker","delete","vertex","onVertexMarkerDrag","iconPos","getPosition","update","refresh","updateLatLng","next","getNext","onVertexMarkerDragStart","onVertexMarkerDragEnd","onVertexMarkerClick","DomEvent","stop","onVertexMarkerContextMenu","onVertexMarkerMouseDown","onVertexMarkerMouseOver","onVertexMarkerMouseOut","getIndex","onVertexDeleted","deleteShape","resetMiddleMarker","indexOf","getLastIndex","getPrevious","index","previousIndex","CLOSED","previous","nextIndex","addMiddleMarker","hasMiddleMarkers","split","splitShape","continue","continueBackward","continueForward","vertexMarkerClass","MiddleMarker","left","right","computeLatLng","_opacity","setVisibility","leftPoint","latLngToContainerPoint","rightPoint","size","hide","show","containerPointToLatLng","onMiddleMarkerMouseDown","addVertexMarker","onNewVertex","removeChild","appendChild","_initIcon","_initInteraction","Draggable","_dragging","dragging","_draggable","_onDown","middleMarkerClass","BaseEditor","Handler","feature","addHooks","isConnected","onFeatureAdd","onEnable","_getEvents","removeHooks","disable","onDisable","onEditing","onStartDrawing","onEndDrawing","onCancelDrawing","onCommitDrawing","endDrawing","connect","processDrawingClick","onMove","dragstart","drag","dragend","MarkerEditor","PathEditor","MIN_VERTEX","initVertexMarkers","enabled","getLatLngs","isFlat","addVertexMarkers","refreshVertexMarkers","getDefaultLatLngs","commit","ctrlKey","onVertexMarkerCtrlClick","altKey","onVertexMarkerAltClick","shiftKey","onVertexMarkerShiftClick","metaKey","onVertexMarkerMetaKeyClick","_drawnLatLngs","onVertexRawMarkerClick","vertexCanBeDeleted","extendBounds","setDrawnLatLngs","startDrawingForward","unshift","newPointForward","newPointBackward","removeLatLng","pop","shape","addNewEmptyShape","_deleteShape","ensureNotFlat","self","inplaceDelete","MAX_VALUE","spliceDelete","deleteShapeAt","shapeAt","appendShape","insertShape","prependShape","ensureMulti","formatShape","_enabled","PolylineEditor","startDrawingBackward","shapeIndex","first","second","alt","PolygonEditor","addNewEmptyHole","holes","parentShape","idx","RectangleEditor","oppositeIndex","opposite","updateBounds","updateLatLngs","_simulated","_onUp","newLatlngs","_boundsToLatLngs","CircleEditor","_resizeLatLng","computeResizeLatLng","delta","_radius","_mRadius","unproject","updateResizeLatLng","resize","setRadius","EditableMixin","createEditor","Error","Klass","editorClass","getEditorClass","editEnabled","_onEditableAdd","isInLatLngs","part","w","_clickTolerance","_projectLatlngs","_pxBounds","LineUtil","pointToSegmentDistance","l1","len2","inside","MarkerMixin","RectangleMixin","CircleMixin","keepEditable","_flat","debounce","time","debouncedFunction","args","circleOptions","Control","GridLayer","tileSize","noWrap","gridLayerOptions","ImageOverlay","url","crossOrigin","errorOverlayUrl","imageOverlayOptions","setUrl","setBounds","getElement","bringToFront","bringToBack","layerGroupOptions","alreadyAdded","alreadyRemoved","Popper","content","popperOptions","setContent","$slots","TileLayer","tms","subdomains","prop","every","subdomain","detectRetina","tileLayerOptions","TileLayerWMS","format","transparent","version","upperCase","tileLayerWMSOptions","prefix","collapsed","autoZIndex","hideSingleBase","sortLayers","sortFunction","Function","registerLayerControl","addBaseLayer","addOverlay","maxWidth","metric","imperial","updateWhenIdle","scale","LayerGroupMixin","geojson","optionsStyle","mergedOptions","setGeojson","addData","setOptionsStyle","GridLayerMixin","tileComponent","required","tileComponents","TileConstructor","GLayer","onUnload","createTile","coords","div","create","dummy","tileInstance","propsData","_tileCoordsToKey","$destroy","setTileComponent","iconUrl","iconRetinaUrl","iconAnchor","popupAnchor","tooltipAnchor","shadowUrl","shadowRetinaUrl","shadowSize","shadowAnchor","bgPos","observer","recreationNeeded","swapHtmlNeeded","MutationObserver","scheduleHtmlSwap","observe","attributes","childList","characterData","subtree","scheduleCreateIcon","$props","disconnect","htmlSwapNeeded","iconObject","innerHTML","setIconUrl","setIconRetinaUrl","setIconSize","setIconAnchor","setPopupAnchor","setTooltipAnchor","setShadowUrl","setShadowRetinaUrl","setShadowAnchor","setBgPos","setHtml","imagePath","Default","setImagePath","ImageOverlayMixin","bindTooltip","baseUrl","wms","zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","r","o","configurable","enumerable","get","__esModule","s","u","f","keys","forEach","esModule","display","bindPopup","isValid"],"mappings":"kHAAA,0BAIe,sBAAf,S,sECJA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAAEN,EAAS,MAAEA,EAAIO,GAAG,WAAWP,EAAIQ,MAAM,IAC9KC,EAAkB,G,8CC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AAG,MAAM,CAACiB,YAAY,CAAC,QAAU,SAAS,CAAErB,EAAS,MAAEA,EAAIO,GAAG,WAAWP,EAAIQ,MAAM,IACvL0H,EAA0B,GAGxBC,OAAwBzE,EAExB0E,OAAmB1E,EAEnB2E,OAA4B3E,EAE5B4E,GAAiC,EASjCC,EAAiCpC,EACnC,CAAEpG,OAAQkI,EAAgBxH,gBAAiByH,GAC3CC,EACAH,EACAI,EACAE,EACAD,GACA,OACA3E,OACAA,OACAA,GAGW","file":"js/chunk-7c477acf.bbcbe410.js","sourcesContent":["import './_grid.sass'\n\nimport Grid from './grid'\n\nexport default Grid('flex')\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue2leaflet-map\"},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditableMap.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditableMap.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditableMap.vue?vue&type=template&id=78bf1a5d&\"\nimport script from \"./EditableMap.vue?vue&type=script&lang=js&\"\nexport * from \"./EditableMap.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../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('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n props: {\n editable: {\n type: Boolean,\n default: false,\n custom: true\n }\n },\n methods: {\n setEditable(enable) {\n if (enable) {\n this.mapObject.enableEdit();\n } else {\n this.mapObject.disableEdit();\n }\n },\n enableEdit() {\n this.mapObject.enableEdit();\n },\n disableEdit() {\n this.mapObject.disableEdit();\n },\n toggleEdit() {\n this.mapObject.toggleEdit();\n }\n },\n mounted() {\n this.setEditable(this.editable);\n },\n watch: {\n editable(v) {\n return this.setEditable(v);\n }\n }\n};\n","\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditablePolygon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditablePolygon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditablePolygon.vue?vue&type=template&id=3bd45e3e&\"\nimport script from \"./EditablePolygon.vue?vue&type=script&lang=js&\"\nexport * from \"./EditablePolygon.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../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('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditableRectangle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditableRectangle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditableRectangle.vue?vue&type=template&id=0d47c396&\"\nimport script from \"./EditableRectangle.vue?vue&type=script&lang=js&\"\nexport * from \"./EditableRectangle.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../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('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditablePolyline.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--12-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--0-0!../../../vue-loader/lib/index.js??vue-loader-options!./EditablePolyline.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditablePolyline.vue?vue&type=template&id=0b52828e&\"\nimport script from \"./EditablePolyline.vue?vue&type=script&lang=js&\"\nexport * from \"./EditablePolyline.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../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","import { setOptions, Control, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 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 /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Add any custom component as a leaflet control\n */\nvar script = {\n name: 'LControl',\n mixins: [ControlMixin, Options],\n props: {\n disableClickPropagation: {\n type: Boolean,\n custom: true,\n default: true,\n },\n disableScrollPropagation: {\n type: Boolean,\n custom: true,\n default: false,\n }\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var LControl = Control.extend({\n element: undefined,\n onAdd: function onAdd() {\n return this.element;\n },\n setElement: function setElement(el) {\n this.element = el;\n },\n });\n var options = optionsMerger(this.controlOptions, this);\n this.mapObject = new LControl(options);\n propsBinder(this, this.mapObject, this.$options.props);\n this.parentContainer = findRealParent(this.$parent);\n this.mapObject.setElement(this.$el);\n if (this.disableClickPropagation) {\n DomEvent.disableClickPropagation(this.$el);\n }\n if (this.disableScrollPropagation) {\n DomEvent.disableScrollPropagation(this.$el);\n }\n this.mapObject.addTo(this.parentContainer.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};\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\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__ = /*#__PURE__*/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","/*\n * Leaflet.markercluster 1.5.0+master.499f71c,\n * Provides Beautiful Animated Marker Clustering functionality for Leaflet, a JS library for interactive maps.\n * https://github.com/Leaflet/Leaflet.markercluster\n * (c) 2012-2017, Dave Leaver, smartrak\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(global = global || self, factory((global.Leaflet = global.Leaflet || {}, global.Leaflet.markercluster = {})));\n}(this, function (exports) { 'use strict';\n\n\t/*\n\t * L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within\n\t */\n\n\tvar MarkerClusterGroup = L.MarkerClusterGroup = L.FeatureGroup.extend({\n\n\t\toptions: {\n\t\t\tmaxClusterRadius: 80, //A cluster will cover at most this many pixels from its center\n\t\t\ticonCreateFunction: null,\n\t\t\tclusterPane: L.Marker.prototype.options.pane,\n\n\t\t\tspiderfyOnMaxZoom: true,\n\t\t\tshowCoverageOnHover: true,\n\t\t\tzoomToBoundsOnClick: true,\n\t\t\tsingleMarkerMode: false,\n\n\t\t\tdisableClusteringAtZoom: null,\n\n\t\t\t// Setting this to false prevents the removal of any clusters outside of the viewpoint, which\n\t\t\t// is the default behaviour for performance reasons.\n\t\t\tremoveOutsideVisibleBounds: true,\n\n\t\t\t// Set to false to disable all animations (zoom and spiderfy).\n\t\t\t// If false, option animateAddingMarkers below has no effect.\n\t\t\t// If L.DomUtil.TRANSITION is falsy, this option has no effect.\n\t\t\tanimate: true,\n\n\t\t\t//Whether to animate adding markers after adding the MarkerClusterGroup to the map\n\t\t\t// If you are adding individual markers set to true, if adding bulk markers leave false for massive performance gains.\n\t\t\tanimateAddingMarkers: false,\n\n\t\t\t// Make it possible to provide custom function to calculate spiderfy shape positions\n\t\t\tspiderfyShapePositions: null,\n\n\t\t\t//Increase to increase the distance away that spiderfied markers appear from the center\n\t\t\tspiderfyDistanceMultiplier: 1,\n\n\t\t\t// Make it possible to specify a polyline options on a spider leg\n\t\t\tspiderLegPolylineOptions: { weight: 1.5, color: '#222', opacity: 0.5 },\n\n\t\t\t// When bulk adding layers, adds markers in chunks. Means addLayers may not add all the layers in the call, others will be loaded during setTimeouts\n\t\t\tchunkedLoading: false,\n\t\t\tchunkInterval: 200, // process markers for a maximum of ~ n milliseconds (then trigger the chunkProgress callback)\n\t\t\tchunkDelay: 50, // at the end of each interval, give n milliseconds back to system/browser\n\t\t\tchunkProgress: null, // progress callback: function(processed, total, elapsed) (e.g. for a progress indicator)\n\n\t\t\t//Options to pass to the L.Polygon constructor\n\t\t\tpolygonOptions: {}\n\t\t},\n\n\t\tinitialize: function (options) {\n\t\t\tL.Util.setOptions(this, options);\n\t\t\tif (!this.options.iconCreateFunction) {\n\t\t\t\tthis.options.iconCreateFunction = this._defaultIconCreateFunction;\n\t\t\t}\n\n\t\t\tthis._featureGroup = L.featureGroup();\n\t\t\tthis._featureGroup.addEventParent(this);\n\n\t\t\tthis._nonPointGroup = L.featureGroup();\n\t\t\tthis._nonPointGroup.addEventParent(this);\n\n\t\t\tthis._inZoomAnimation = 0;\n\t\t\tthis._needsClustering = [];\n\t\t\tthis._needsRemoving = []; //Markers removed while we aren't on the map need to be kept track of\n\t\t\t//The bounds of the currently shown area (from _getExpandedVisibleBounds) Updated on zoom/move\n\t\t\tthis._currentShownBounds = null;\n\n\t\t\tthis._queue = [];\n\n\t\t\tthis._childMarkerEventHandlers = {\n\t\t\t\t'dragstart': this._childMarkerDragStart,\n\t\t\t\t'move': this._childMarkerMoved,\n\t\t\t\t'dragend': this._childMarkerDragEnd,\n\t\t\t};\n\n\t\t\t// Hook the appropriate animation methods.\n\t\t\tvar animate = L.DomUtil.TRANSITION && this.options.animate;\n\t\t\tL.extend(this, animate ? this._withAnimation : this._noAnimation);\n\t\t\t// Remember which MarkerCluster class to instantiate (animated or not).\n\t\t\tthis._markerCluster = animate ? L.MarkerCluster : L.MarkerClusterNonAnimated;\n\t\t},\n\n\t\taddLayer: function (layer) {\n\n\t\t\tif (layer instanceof L.LayerGroup) {\n\t\t\t\treturn this.addLayers([layer]);\n\t\t\t}\n\n\t\t\t//Don't cluster non point data\n\t\t\tif (!layer.getLatLng) {\n\t\t\t\tthis._nonPointGroup.addLayer(layer);\n\t\t\t\tthis.fire('layeradd', { layer: layer });\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tif (!this._map) {\n\t\t\t\tthis._needsClustering.push(layer);\n\t\t\t\tthis.fire('layeradd', { layer: layer });\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tif (this.hasLayer(layer)) {\n\t\t\t\treturn this;\n\t\t\t}\n\n\n\t\t\t//If we have already clustered we'll need to add this one to a cluster\n\n\t\t\tif (this._unspiderfy) {\n\t\t\t\tthis._unspiderfy();\n\t\t\t}\n\n\t\t\tthis._addLayer(layer, this._maxZoom);\n\t\t\tthis.fire('layeradd', { layer: layer });\n\n\t\t\t// Refresh bounds and weighted positions.\n\t\t\tthis._topClusterLevel._recalculateBounds();\n\n\t\t\tthis._refreshClustersIcons();\n\n\t\t\t//Work out what is visible\n\t\t\tvar visibleLayer = layer,\n\t\t\t currentZoom = this._zoom;\n\t\t\tif (layer.__parent) {\n\t\t\t\twhile (visibleLayer.__parent._zoom >= currentZoom) {\n\t\t\t\t\tvisibleLayer = visibleLayer.__parent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this._currentShownBounds.contains(visibleLayer.getLatLng())) {\n\t\t\t\tif (this.options.animateAddingMarkers) {\n\t\t\t\t\tthis._animationAddLayer(layer, visibleLayer);\n\t\t\t\t} else {\n\t\t\t\t\tthis._animationAddLayerNonAnimated(layer, visibleLayer);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\tremoveLayer: function (layer) {\n\n\t\t\tif (layer instanceof L.LayerGroup) {\n\t\t\t\treturn this.removeLayers([layer]);\n\t\t\t}\n\n\t\t\t//Non point layers\n\t\t\tif (!layer.getLatLng) {\n\t\t\t\tthis._nonPointGroup.removeLayer(layer);\n\t\t\t\tthis.fire('layerremove', { layer: layer });\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tif (!this._map) {\n\t\t\t\tif (!this._arraySplice(this._needsClustering, layer) && this.hasLayer(layer)) {\n\t\t\t\t\tthis._needsRemoving.push({ layer: layer, latlng: layer._latlng });\n\t\t\t\t}\n\t\t\t\tthis.fire('layerremove', { layer: layer });\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tif (!layer.__parent) {\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tif (this._unspiderfy) {\n\t\t\t\tthis._unspiderfy();\n\t\t\t\tthis._unspiderfyLayer(layer);\n\t\t\t}\n\n\t\t\t//Remove the marker from clusters\n\t\t\tthis._removeLayer(layer, true);\n\t\t\tthis.fire('layerremove', { layer: layer });\n\n\t\t\t// Refresh bounds and weighted positions.\n\t\t\tthis._topClusterLevel._recalculateBounds();\n\n\t\t\tthis._refreshClustersIcons();\n\n\t\t\tlayer.off(this._childMarkerEventHandlers, this);\n\n\t\t\tif (this._featureGroup.hasLayer(layer)) {\n\t\t\t\tthis._featureGroup.removeLayer(layer);\n\t\t\t\tif (layer.clusterShow) {\n\t\t\t\t\tlayer.clusterShow();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\t//Takes an array of markers and adds them in bulk\n\t\taddLayers: function (layersArray, skipLayerAddEvent) {\n\t\t\tif (!L.Util.isArray(layersArray)) {\n\t\t\t\treturn this.addLayer(layersArray);\n\t\t\t}\n\n\t\t\tvar fg = this._featureGroup,\n\t\t\t npg = this._nonPointGroup,\n\t\t\t chunked = this.options.chunkedLoading,\n\t\t\t chunkInterval = this.options.chunkInterval,\n\t\t\t chunkProgress = this.options.chunkProgress,\n\t\t\t l = layersArray.length,\n\t\t\t offset = 0,\n\t\t\t originalArray = true,\n\t\t\t m;\n\n\t\t\tif (this._map) {\n\t\t\t\tvar started = (new Date()).getTime();\n\t\t\t\tvar process = L.bind(function () {\n\t\t\t\t\tvar start = (new Date()).getTime();\n\n\t\t\t\t\t// Make sure to unspiderfy before starting to add some layers\n\t\t\t\t\tif (this._map && this._unspiderfy) {\n\t\t\t\t\t\tthis._unspiderfy();\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (; offset < l; offset++) {\n\t\t\t\t\t\tif (chunked && offset % 200 === 0) {\n\t\t\t\t\t\t\t// every couple hundred markers, instrument the time elapsed since processing started:\n\t\t\t\t\t\t\tvar elapsed = (new Date()).getTime() - start;\n\t\t\t\t\t\t\tif (elapsed > chunkInterval) {\n\t\t\t\t\t\t\t\tbreak; // been working too hard, time to take a break :-)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tm = layersArray[offset];\n\n\t\t\t\t\t\t// Group of layers, append children to layersArray and skip.\n\t\t\t\t\t\t// Side effects:\n\t\t\t\t\t\t// - Total increases, so chunkProgress ratio jumps backward.\n\t\t\t\t\t\t// - Groups are not included in this group, only their non-group child layers (hasLayer).\n\t\t\t\t\t\t// Changing array length while looping does not affect performance in current browsers:\n\t\t\t\t\t\t// http://jsperf.com/for-loop-changing-length/6\n\t\t\t\t\t\tif (m instanceof L.LayerGroup) {\n\t\t\t\t\t\t\tif (originalArray) {\n\t\t\t\t\t\t\t\tlayersArray = layersArray.slice();\n\t\t\t\t\t\t\t\toriginalArray = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\n\t\t\t\t\t\t\tl = layersArray.length;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Not point data, can't be clustered\n\t\t\t\t\t\tif (!m.getLatLng) {\n\t\t\t\t\t\t\tnpg.addLayer(m);\n\t\t\t\t\t\t\tif (!skipLayerAddEvent) {\n\t\t\t\t\t\t\t\tthis.fire('layeradd', { layer: m });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (this.hasLayer(m)) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis._addLayer(m, this._maxZoom);\n\t\t\t\t\t\tif (!skipLayerAddEvent) {\n\t\t\t\t\t\t\tthis.fire('layeradd', { layer: m });\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//If we just made a cluster of size 2 then we need to remove the other marker from the map (if it is) or we never will\n\t\t\t\t\t\tif (m.__parent) {\n\t\t\t\t\t\t\tif (m.__parent.getChildCount() === 2) {\n\t\t\t\t\t\t\t\tvar markers = m.__parent.getAllChildMarkers(),\n\t\t\t\t\t\t\t\t otherMarker = markers[0] === m ? markers[1] : markers[0];\n\t\t\t\t\t\t\t\tfg.removeLayer(otherMarker);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (chunkProgress) {\n\t\t\t\t\t\t// report progress and time elapsed:\n\t\t\t\t\t\tchunkProgress(offset, l, (new Date()).getTime() - started);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Completed processing all markers.\n\t\t\t\t\tif (offset === l) {\n\n\t\t\t\t\t\t// Refresh bounds and weighted positions.\n\t\t\t\t\t\tthis._topClusterLevel._recalculateBounds();\n\n\t\t\t\t\t\tthis._refreshClustersIcons();\n\n\t\t\t\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetTimeout(process, this.options.chunkDelay);\n\t\t\t\t\t}\n\t\t\t\t}, this);\n\n\t\t\t\tprocess();\n\t\t\t} else {\n\t\t\t\tvar needsClustering = this._needsClustering;\n\n\t\t\t\tfor (; offset < l; offset++) {\n\t\t\t\t\tm = layersArray[offset];\n\n\t\t\t\t\t// Group of layers, append children to layersArray and skip.\n\t\t\t\t\tif (m instanceof L.LayerGroup) {\n\t\t\t\t\t\tif (originalArray) {\n\t\t\t\t\t\t\tlayersArray = layersArray.slice();\n\t\t\t\t\t\t\toriginalArray = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\n\t\t\t\t\t\tl = layersArray.length;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t//Not point data, can't be clustered\n\t\t\t\t\tif (!m.getLatLng) {\n\t\t\t\t\t\tnpg.addLayer(m);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (this.hasLayer(m)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tneedsClustering.push(m);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\t//Takes an array of markers and removes them in bulk\n\t\tremoveLayers: function (layersArray) {\n\t\t\tvar i, m,\n\t\t\t l = layersArray.length,\n\t\t\t fg = this._featureGroup,\n\t\t\t npg = this._nonPointGroup,\n\t\t\t originalArray = true;\n\n\t\t\tif (!this._map) {\n\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\tm = layersArray[i];\n\n\t\t\t\t\t// Group of layers, append children to layersArray and skip.\n\t\t\t\t\tif (m instanceof L.LayerGroup) {\n\t\t\t\t\t\tif (originalArray) {\n\t\t\t\t\t\t\tlayersArray = layersArray.slice();\n\t\t\t\t\t\t\toriginalArray = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\n\t\t\t\t\t\tl = layersArray.length;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis._arraySplice(this._needsClustering, m);\n\t\t\t\t\tnpg.removeLayer(m);\n\t\t\t\t\tif (this.hasLayer(m)) {\n\t\t\t\t\t\tthis._needsRemoving.push({ layer: m, latlng: m._latlng });\n\t\t\t\t\t}\n\t\t\t\t\tthis.fire('layerremove', { layer: m });\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\n\t\t\tif (this._unspiderfy) {\n\t\t\t\tthis._unspiderfy();\n\n\t\t\t\t// Work on a copy of the array, so that next loop is not affected.\n\t\t\t\tvar layersArray2 = layersArray.slice(),\n\t\t\t\t l2 = l;\n\t\t\t\tfor (i = 0; i < l2; i++) {\n\t\t\t\t\tm = layersArray2[i];\n\n\t\t\t\t\t// Group of layers, append children to layersArray and skip.\n\t\t\t\t\tif (m instanceof L.LayerGroup) {\n\t\t\t\t\t\tthis._extractNonGroupLayers(m, layersArray2);\n\t\t\t\t\t\tl2 = layersArray2.length;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis._unspiderfyLayer(m);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\tm = layersArray[i];\n\n\t\t\t\t// Group of layers, append children to layersArray and skip.\n\t\t\t\tif (m instanceof L.LayerGroup) {\n\t\t\t\t\tif (originalArray) {\n\t\t\t\t\t\tlayersArray = layersArray.slice();\n\t\t\t\t\t\toriginalArray = false;\n\t\t\t\t\t}\n\t\t\t\t\tthis._extractNonGroupLayers(m, layersArray);\n\t\t\t\t\tl = layersArray.length;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (!m.__parent) {\n\t\t\t\t\tnpg.removeLayer(m);\n\t\t\t\t\tthis.fire('layerremove', { layer: m });\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tthis._removeLayer(m, true, true);\n\t\t\t\tthis.fire('layerremove', { layer: m });\n\n\t\t\t\tif (fg.hasLayer(m)) {\n\t\t\t\t\tfg.removeLayer(m);\n\t\t\t\t\tif (m.clusterShow) {\n\t\t\t\t\t\tm.clusterShow();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Refresh bounds and weighted positions.\n\t\t\tthis._topClusterLevel._recalculateBounds();\n\n\t\t\tthis._refreshClustersIcons();\n\n\t\t\t//Fix up the clusters and markers on the map\n\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, this._zoom, this._currentShownBounds);\n\n\t\t\treturn this;\n\t\t},\n\n\t\t//Removes all layers from the MarkerClusterGroup\n\t\tclearLayers: function () {\n\t\t\t//Need our own special implementation as the LayerGroup one doesn't work for us\n\n\t\t\t//If we aren't on the map (yet), blow away the markers we know of\n\t\t\tif (!this._map) {\n\t\t\t\tthis._needsClustering = [];\n\t\t\t\tthis._needsRemoving = [];\n\t\t\t\tdelete this._gridClusters;\n\t\t\t\tdelete this._gridUnclustered;\n\t\t\t}\n\n\t\t\tif (this._noanimationUnspiderfy) {\n\t\t\t\tthis._noanimationUnspiderfy();\n\t\t\t}\n\n\t\t\t//Remove all the visible layers\n\t\t\tthis._featureGroup.clearLayers();\n\t\t\tthis._nonPointGroup.clearLayers();\n\n\t\t\tthis.eachLayer(function (marker) {\n\t\t\t\tmarker.off(this._childMarkerEventHandlers, this);\n\t\t\t\tdelete marker.__parent;\n\t\t\t}, this);\n\n\t\t\tif (this._map) {\n\t\t\t\t//Reset _topClusterLevel and the DistanceGrids\n\t\t\t\tthis._generateInitialClusters();\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\t//Override FeatureGroup.getBounds as it doesn't work\n\t\tgetBounds: function () {\n\t\t\tvar bounds = new L.LatLngBounds();\n\n\t\t\tif (this._topClusterLevel) {\n\t\t\t\tbounds.extend(this._topClusterLevel._bounds);\n\t\t\t}\n\n\t\t\tfor (var i = this._needsClustering.length - 1; i >= 0; i--) {\n\t\t\t\tbounds.extend(this._needsClustering[i].getLatLng());\n\t\t\t}\n\n\t\t\tbounds.extend(this._nonPointGroup.getBounds());\n\n\t\t\treturn bounds;\n\t\t},\n\n\t\t//Overrides LayerGroup.eachLayer\n\t\teachLayer: function (method, context) {\n\t\t\tvar markers = this._needsClustering.slice(),\n\t\t\t\tneedsRemoving = this._needsRemoving,\n\t\t\t\tthisNeedsRemoving, i, j;\n\n\t\t\tif (this._topClusterLevel) {\n\t\t\t\tthis._topClusterLevel.getAllChildMarkers(markers);\n\t\t\t}\n\n\t\t\tfor (i = markers.length - 1; i >= 0; i--) {\n\t\t\t\tthisNeedsRemoving = true;\n\n\t\t\t\tfor (j = needsRemoving.length - 1; j >= 0; j--) {\n\t\t\t\t\tif (needsRemoving[j].layer === markers[i]) {\n\t\t\t\t\t\tthisNeedsRemoving = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (thisNeedsRemoving) {\n\t\t\t\t\tmethod.call(context, markers[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._nonPointGroup.eachLayer(method, context);\n\t\t},\n\n\t\t//Overrides LayerGroup.getLayers\n\t\tgetLayers: function () {\n\t\t\tvar layers = [];\n\t\t\tthis.eachLayer(function (l) {\n\t\t\t\tlayers.push(l);\n\t\t\t});\n\t\t\treturn layers;\n\t\t},\n\n\t\t//Overrides LayerGroup.getLayer, WARNING: Really bad performance\n\t\tgetLayer: function (id) {\n\t\t\tvar result = null;\n\n\t\t\tid = parseInt(id, 10);\n\n\t\t\tthis.eachLayer(function (l) {\n\t\t\t\tif (L.stamp(l) === id) {\n\t\t\t\t\tresult = l;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn result;\n\t\t},\n\n\t\t//Returns true if the given layer is in this MarkerClusterGroup\n\t\thasLayer: function (layer) {\n\t\t\tif (!layer) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tvar i, anArray = this._needsClustering;\n\n\t\t\tfor (i = anArray.length - 1; i >= 0; i--) {\n\t\t\t\tif (anArray[i] === layer) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanArray = this._needsRemoving;\n\t\t\tfor (i = anArray.length - 1; i >= 0; i--) {\n\t\t\t\tif (anArray[i].layer === layer) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn !!(layer.__parent && layer.__parent._group === this) || this._nonPointGroup.hasLayer(layer);\n\t\t},\n\n\t\t//Zoom down to show the given layer (spiderfying if necessary) then calls the callback\n\t\tzoomToShowLayer: function (layer, callback) {\n\n\t\t\tvar map = this._map;\n\n\t\t\tif (typeof callback !== 'function') {\n\t\t\t\tcallback = function () {};\n\t\t\t}\n\n\t\t\tvar showMarker = function () {\n\t\t\t\t// Assumes that map.hasLayer checks for direct appearance on map, not recursively calling\n\t\t\t\t// hasLayer on Layer Groups that are on map (typically not calling this MarkerClusterGroup.hasLayer, which would always return true)\n\t\t\t\tif ((map.hasLayer(layer) || map.hasLayer(layer.__parent)) && !this._inZoomAnimation) {\n\t\t\t\t\tthis._map.off('moveend', showMarker, this);\n\t\t\t\t\tthis.off('animationend', showMarker, this);\n\n\t\t\t\t\tif (map.hasLayer(layer)) {\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else if (layer.__parent._icon) {\n\t\t\t\t\t\tthis.once('spiderfied', callback, this);\n\t\t\t\t\t\tlayer.__parent.spiderfy();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tif (layer._icon && this._map.getBounds().contains(layer.getLatLng())) {\n\t\t\t\t//Layer is visible ond on screen, immediate return\n\t\t\t\tcallback();\n\t\t\t} else if (layer.__parent._zoom < Math.round(this._map._zoom)) {\n\t\t\t\t//Layer should be visible at this zoom level. It must not be on screen so just pan over to it\n\t\t\t\tthis._map.on('moveend', showMarker, this);\n\t\t\t\tthis._map.panTo(layer.getLatLng());\n\t\t\t} else {\n\t\t\t\tthis._map.on('moveend', showMarker, this);\n\t\t\t\tthis.on('animationend', showMarker, this);\n\t\t\t\tlayer.__parent.zoomToBounds();\n\t\t\t}\n\t\t},\n\n\t\t//Overrides FeatureGroup.onAdd\n\t\tonAdd: function (map) {\n\t\t\tthis._map = map;\n\t\t\tvar i, l, layer;\n\n\t\t\tif (!isFinite(this._map.getMaxZoom())) {\n\t\t\t\tthrow \"Map has no maxZoom specified\";\n\t\t\t}\n\n\t\t\tthis._featureGroup.addTo(map);\n\t\t\tthis._nonPointGroup.addTo(map);\n\n\t\t\tif (!this._gridClusters) {\n\t\t\t\tthis._generateInitialClusters();\n\t\t\t}\n\n\t\t\tthis._maxLat = map.options.crs.projection.MAX_LATITUDE;\n\n\t\t\t//Restore all the positions as they are in the MCG before removing them\n\t\t\tfor (i = 0, l = this._needsRemoving.length; i < l; i++) {\n\t\t\t\tlayer = this._needsRemoving[i];\n\t\t\t\tlayer.newlatlng = layer.layer._latlng;\n\t\t\t\tlayer.layer._latlng = layer.latlng;\n\t\t\t}\n\t\t\t//Remove them, then restore their new positions\n\t\t\tfor (i = 0, l = this._needsRemoving.length; i < l; i++) {\n\t\t\t\tlayer = this._needsRemoving[i];\n\t\t\t\tthis._removeLayer(layer.layer, true);\n\t\t\t\tlayer.layer._latlng = layer.newlatlng;\n\t\t\t}\n\t\t\tthis._needsRemoving = [];\n\n\t\t\t//Remember the current zoom level and bounds\n\t\t\tthis._zoom = Math.round(this._map._zoom);\n\t\t\tthis._currentShownBounds = this._getExpandedVisibleBounds();\n\n\t\t\tthis._map.on('zoomend', this._zoomEnd, this);\n\t\t\tthis._map.on('moveend', this._moveEnd, this);\n\n\t\t\tif (this._spiderfierOnAdd) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely\n\t\t\t\tthis._spiderfierOnAdd();\n\t\t\t}\n\n\t\t\tthis._bindEvents();\n\n\t\t\t//Actually add our markers to the map:\n\t\t\tl = this._needsClustering;\n\t\t\tthis._needsClustering = [];\n\t\t\tthis.addLayers(l, true);\n\t\t},\n\n\t\t//Overrides FeatureGroup.onRemove\n\t\tonRemove: function (map) {\n\t\t\tmap.off('zoomend', this._zoomEnd, this);\n\t\t\tmap.off('moveend', this._moveEnd, this);\n\n\t\t\tthis._unbindEvents();\n\n\t\t\t//In case we are in a cluster animation\n\t\t\tthis._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');\n\n\t\t\tif (this._spiderfierOnRemove) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely\n\t\t\t\tthis._spiderfierOnRemove();\n\t\t\t}\n\n\t\t\tdelete this._maxLat;\n\n\t\t\t//Clean up all the layers we added to the map\n\t\t\tthis._hideCoverage();\n\t\t\tthis._featureGroup.remove();\n\t\t\tthis._nonPointGroup.remove();\n\n\t\t\tthis._featureGroup.clearLayers();\n\n\t\t\tthis._map = null;\n\t\t},\n\n\t\tgetVisibleParent: function (marker) {\n\t\t\tvar vMarker = marker;\n\t\t\twhile (vMarker && !vMarker._icon) {\n\t\t\t\tvMarker = vMarker.__parent;\n\t\t\t}\n\t\t\treturn vMarker || null;\n\t\t},\n\n\t\t//Remove the given object from the given array\n\t\t_arraySplice: function (anArray, obj) {\n\t\t\tfor (var i = anArray.length - 1; i >= 0; i--) {\n\t\t\t\tif (anArray[i] === obj) {\n\t\t\t\t\tanArray.splice(i, 1);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Removes a marker from all _gridUnclustered zoom levels, starting at the supplied zoom.\n\t\t * @param marker to be removed from _gridUnclustered.\n\t\t * @param z integer bottom start zoom level (included)\n\t\t * @private\n\t\t */\n\t\t_removeFromGridUnclustered: function (marker, z) {\n\t\t\tvar map = this._map,\n\t\t\t gridUnclustered = this._gridUnclustered,\n\t\t\t\tminZoom = Math.floor(this._map.getMinZoom());\n\n\t\t\tfor (; z >= minZoom; z--) {\n\t\t\t\tif (!gridUnclustered[z].removeObject(marker, map.project(marker.getLatLng(), z))) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_childMarkerDragStart: function (e) {\n\t\t\te.target.__dragStart = e.target._latlng;\n\t\t},\n\n\t\t_childMarkerMoved: function (e) {\n\t\t\tif (!this._ignoreMove && !e.target.__dragStart) {\n\t\t\t\tvar isPopupOpen = e.target._popup && e.target._popup.isOpen();\n\n\t\t\t\tthis._moveChild(e.target, e.oldLatLng, e.latlng);\n\n\t\t\t\tif (isPopupOpen) {\n\t\t\t\t\te.target.openPopup();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_moveChild: function (layer, from, to) {\n\t\t\tlayer._latlng = from;\n\t\t\tthis.removeLayer(layer);\n\n\t\t\tlayer._latlng = to;\n\t\t\tthis.addLayer(layer);\n\t\t},\n\n\t\t_childMarkerDragEnd: function (e) {\n\t\t\tvar dragStart = e.target.__dragStart;\n\t\t\tdelete e.target.__dragStart;\n\t\t\tif (dragStart) {\n\t\t\t\tthis._moveChild(e.target, dragStart, e.target._latlng);\n\t\t\t}\t\t\n\t\t},\n\n\n\t\t//Internal function for removing a marker from everything.\n\t\t//dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)\n\t\t_removeLayer: function (marker, removeFromDistanceGrid, dontUpdateMap) {\n\t\t\tvar gridClusters = this._gridClusters,\n\t\t\t\tgridUnclustered = this._gridUnclustered,\n\t\t\t\tfg = this._featureGroup,\n\t\t\t\tmap = this._map,\n\t\t\t\tminZoom = Math.floor(this._map.getMinZoom());\n\n\t\t\t//Remove the marker from distance clusters it might be in\n\t\t\tif (removeFromDistanceGrid) {\n\t\t\t\tthis._removeFromGridUnclustered(marker, this._maxZoom);\n\t\t\t}\n\n\t\t\t//Work our way up the clusters removing them as we go if required\n\t\t\tvar cluster = marker.__parent,\n\t\t\t\tmarkers = cluster._markers,\n\t\t\t\totherMarker;\n\n\t\t\t//Remove the marker from the immediate parents marker list\n\t\t\tthis._arraySplice(markers, marker);\n\n\t\t\twhile (cluster) {\n\t\t\t\tcluster._childCount--;\n\t\t\t\tcluster._boundsNeedUpdate = true;\n\n\t\t\t\tif (cluster._zoom < minZoom) {\n\t\t\t\t\t//Top level, do nothing\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (removeFromDistanceGrid && cluster._childCount <= 1) { //Cluster no longer required\n\t\t\t\t\t//We need to push the other marker up to the parent\n\t\t\t\t\totherMarker = cluster._markers[0] === marker ? cluster._markers[1] : cluster._markers[0];\n\n\t\t\t\t\t//Update distance grid\n\t\t\t\t\tgridClusters[cluster._zoom].removeObject(cluster, map.project(cluster._cLatLng, cluster._zoom));\n\t\t\t\t\tgridUnclustered[cluster._zoom].addObject(otherMarker, map.project(otherMarker.getLatLng(), cluster._zoom));\n\n\t\t\t\t\t//Move otherMarker up to parent\n\t\t\t\t\tthis._arraySplice(cluster.__parent._childClusters, cluster);\n\t\t\t\t\tcluster.__parent._markers.push(otherMarker);\n\t\t\t\t\totherMarker.__parent = cluster.__parent;\n\n\t\t\t\t\tif (cluster._icon) {\n\t\t\t\t\t\t//Cluster is currently on the map, need to put the marker on the map instead\n\t\t\t\t\t\tfg.removeLayer(cluster);\n\t\t\t\t\t\tif (!dontUpdateMap) {\n\t\t\t\t\t\t\tfg.addLayer(otherMarker);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcluster._iconNeedsUpdate = true;\n\t\t\t\t}\n\n\t\t\t\tcluster = cluster.__parent;\n\t\t\t}\n\n\t\t\tdelete marker.__parent;\n\t\t},\n\n\t\t_isOrIsParent: function (el, oel) {\n\t\t\twhile (oel) {\n\t\t\t\tif (el === oel) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\toel = oel.parentNode;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\n\t\t//Override L.Evented.fire\n\t\tfire: function (type, data, propagate) {\n\t\t\tif (data && data.layer instanceof L.MarkerCluster) {\n\t\t\t\t//Prevent multiple clustermouseover/off events if the icon is made up of stacked divs (Doesn't work in ie <= 8, no relatedTarget)\n\t\t\t\tif (data.originalEvent && this._isOrIsParent(data.layer._icon, data.originalEvent.relatedTarget)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttype = 'cluster' + type;\n\t\t\t}\n\n\t\t\tL.FeatureGroup.prototype.fire.call(this, type, data, propagate);\n\t\t},\n\n\t\t//Override L.Evented.listens\n\t\tlistens: function (type, propagate) {\n\t\t\treturn L.FeatureGroup.prototype.listens.call(this, type, propagate) || L.FeatureGroup.prototype.listens.call(this, 'cluster' + type, propagate);\n\t\t},\n\n\t\t//Default functionality\n\t\t_defaultIconCreateFunction: function (cluster) {\n\t\t\tvar childCount = cluster.getChildCount();\n\n\t\t\tvar c = ' marker-cluster-';\n\t\t\tif (childCount < 10) {\n\t\t\t\tc += 'small';\n\t\t\t} else if (childCount < 100) {\n\t\t\t\tc += 'medium';\n\t\t\t} else {\n\t\t\t\tc += 'large';\n\t\t\t}\n\n\t\t\treturn new L.DivIcon({ html: '
' + childCount + '
', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });\n\t\t},\n\n\t\t_bindEvents: function () {\n\t\t\tvar map = this._map,\n\t\t\t spiderfyOnMaxZoom = this.options.spiderfyOnMaxZoom,\n\t\t\t showCoverageOnHover = this.options.showCoverageOnHover,\n\t\t\t zoomToBoundsOnClick = this.options.zoomToBoundsOnClick;\n\n\t\t\t//Zoom on cluster click or spiderfy if we are at the lowest level\n\t\t\tif (spiderfyOnMaxZoom || zoomToBoundsOnClick) {\n\t\t\t\tthis.on('clusterclick', this._zoomOrSpiderfy, this);\n\t\t\t}\n\n\t\t\t//Show convex hull (boundary) polygon on mouse over\n\t\t\tif (showCoverageOnHover) {\n\t\t\t\tthis.on('clustermouseover', this._showCoverage, this);\n\t\t\t\tthis.on('clustermouseout', this._hideCoverage, this);\n\t\t\t\tmap.on('zoomend', this._hideCoverage, this);\n\t\t\t}\n\t\t},\n\n\t\t_zoomOrSpiderfy: function (e) {\n\t\t\tvar cluster = e.layer,\n\t\t\t bottomCluster = cluster;\n\n\t\t\twhile (bottomCluster._childClusters.length === 1) {\n\t\t\t\tbottomCluster = bottomCluster._childClusters[0];\n\t\t\t}\n\n\t\t\tif (bottomCluster._zoom === this._maxZoom &&\n\t\t\t\tbottomCluster._childCount === cluster._childCount &&\n\t\t\t\tthis.options.spiderfyOnMaxZoom) {\n\n\t\t\t\t// All child markers are contained in a single cluster from this._maxZoom to this cluster.\n\t\t\t\tcluster.spiderfy();\n\t\t\t} else if (this.options.zoomToBoundsOnClick) {\n\t\t\t\tcluster.zoomToBounds();\n\t\t\t}\n\n\t\t\t// Focus the map again for keyboard users.\n\t\t\tif (e.originalEvent && e.originalEvent.keyCode === 13) {\n\t\t\t\tthis._map._container.focus();\n\t\t\t}\n\t\t},\n\n\t\t_showCoverage: function (e) {\n\t\t\tvar map = this._map;\n\t\t\tif (this._inZoomAnimation) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (this._shownPolygon) {\n\t\t\t\tmap.removeLayer(this._shownPolygon);\n\t\t\t}\n\t\t\tif (e.layer.getChildCount() > 2 && e.layer !== this._spiderfied) {\n\t\t\t\tthis._shownPolygon = new L.Polygon(e.layer.getConvexHull(), this.options.polygonOptions);\n\t\t\t\tmap.addLayer(this._shownPolygon);\n\t\t\t}\n\t\t},\n\n\t\t_hideCoverage: function () {\n\t\t\tif (this._shownPolygon) {\n\t\t\t\tthis._map.removeLayer(this._shownPolygon);\n\t\t\t\tthis._shownPolygon = null;\n\t\t\t}\n\t\t},\n\n\t\t_unbindEvents: function () {\n\t\t\tvar spiderfyOnMaxZoom = this.options.spiderfyOnMaxZoom,\n\t\t\t\tshowCoverageOnHover = this.options.showCoverageOnHover,\n\t\t\t\tzoomToBoundsOnClick = this.options.zoomToBoundsOnClick,\n\t\t\t\tmap = this._map;\n\n\t\t\tif (spiderfyOnMaxZoom || zoomToBoundsOnClick) {\n\t\t\t\tthis.off('clusterclick', this._zoomOrSpiderfy, this);\n\t\t\t}\n\t\t\tif (showCoverageOnHover) {\n\t\t\t\tthis.off('clustermouseover', this._showCoverage, this);\n\t\t\t\tthis.off('clustermouseout', this._hideCoverage, this);\n\t\t\t\tmap.off('zoomend', this._hideCoverage, this);\n\t\t\t}\n\t\t},\n\n\t\t_zoomEnd: function () {\n\t\t\tif (!this._map) { //May have been removed from the map by a zoomEnd handler\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis._mergeSplitClusters();\n\n\t\t\tthis._zoom = Math.round(this._map._zoom);\n\t\t\tthis._currentShownBounds = this._getExpandedVisibleBounds();\n\t\t},\n\n\t\t_moveEnd: function () {\n\t\t\tif (this._inZoomAnimation) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar newBounds = this._getExpandedVisibleBounds();\n\n\t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), this._zoom, newBounds);\n\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, Math.round(this._map._zoom), newBounds);\n\n\t\t\tthis._currentShownBounds = newBounds;\n\t\t\treturn;\n\t\t},\n\n\t\t_generateInitialClusters: function () {\n\t\t\tvar maxZoom = Math.ceil(this._map.getMaxZoom()),\n\t\t\t\tminZoom = Math.floor(this._map.getMinZoom()),\n\t\t\t\tradius = this.options.maxClusterRadius,\n\t\t\t\tradiusFn = radius;\n\n\t\t\t//If we just set maxClusterRadius to a single number, we need to create\n\t\t\t//a simple function to return that number. Otherwise, we just have to\n\t\t\t//use the function we've passed in.\n\t\t\tif (typeof radius !== \"function\") {\n\t\t\t\tradiusFn = function () { return radius; };\n\t\t\t}\n\n\t\t\tif (this.options.disableClusteringAtZoom !== null) {\n\t\t\t\tmaxZoom = this.options.disableClusteringAtZoom - 1;\n\t\t\t}\n\t\t\tthis._maxZoom = maxZoom;\n\t\t\tthis._gridClusters = {};\n\t\t\tthis._gridUnclustered = {};\n\n\t\t\t//Set up DistanceGrids for each zoom\n\t\t\tfor (var zoom = maxZoom; zoom >= minZoom; zoom--) {\n\t\t\t\tthis._gridClusters[zoom] = new L.DistanceGrid(radiusFn(zoom));\n\t\t\t\tthis._gridUnclustered[zoom] = new L.DistanceGrid(radiusFn(zoom));\n\t\t\t}\n\n\t\t\t// Instantiate the appropriate L.MarkerCluster class (animated or not).\n\t\t\tthis._topClusterLevel = new this._markerCluster(this, minZoom - 1);\n\t\t},\n\n\t\t//Zoom: Zoom to start adding at (Pass this._maxZoom to start at the bottom)\n\t\t_addLayer: function (layer, zoom) {\n\t\t\tvar gridClusters = this._gridClusters,\n\t\t\t gridUnclustered = this._gridUnclustered,\n\t\t\t\tminZoom = Math.floor(this._map.getMinZoom()),\n\t\t\t markerPoint, z;\n\n\t\t\tif (this.options.singleMarkerMode) {\n\t\t\t\tthis._overrideMarkerIcon(layer);\n\t\t\t}\n\n\t\t\tlayer.on(this._childMarkerEventHandlers, this);\n\n\t\t\t//Find the lowest zoom level to slot this one in\n\t\t\tfor (; zoom >= minZoom; zoom--) {\n\t\t\t\tmarkerPoint = this._map.project(layer.getLatLng(), zoom); // calculate pixel position\n\n\t\t\t\t//Try find a cluster close by\n\t\t\t\tvar closest = gridClusters[zoom].getNearObject(markerPoint);\n\t\t\t\tif (closest) {\n\t\t\t\t\tclosest._addChild(layer);\n\t\t\t\t\tlayer.__parent = closest;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t//Try find a marker close by to form a new cluster with\n\t\t\t\tclosest = gridUnclustered[zoom].getNearObject(markerPoint);\n\t\t\t\tif (closest) {\n\t\t\t\t\tvar parent = closest.__parent;\n\t\t\t\t\tif (parent) {\n\t\t\t\t\t\tthis._removeLayer(closest, false);\n\t\t\t\t\t}\n\n\t\t\t\t\t//Create new cluster with these 2 in it\n\n\t\t\t\t\tvar newCluster = new this._markerCluster(this, zoom, closest, layer);\n\t\t\t\t\tgridClusters[zoom].addObject(newCluster, this._map.project(newCluster._cLatLng, zoom));\n\t\t\t\t\tclosest.__parent = newCluster;\n\t\t\t\t\tlayer.__parent = newCluster;\n\n\t\t\t\t\t//First create any new intermediate parent clusters that don't exist\n\t\t\t\t\tvar lastParent = newCluster;\n\t\t\t\t\tfor (z = zoom - 1; z > parent._zoom; z--) {\n\t\t\t\t\t\tlastParent = new this._markerCluster(this, z, lastParent);\n\t\t\t\t\t\tgridClusters[z].addObject(lastParent, this._map.project(closest.getLatLng(), z));\n\t\t\t\t\t}\n\t\t\t\t\tparent._addChild(lastParent);\n\n\t\t\t\t\t//Remove closest from this zoom level and any above that it is in, replace with newCluster\n\t\t\t\t\tthis._removeFromGridUnclustered(closest, zoom);\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t//Didn't manage to cluster in at this zoom, record us as a marker here and continue upwards\n\t\t\t\tgridUnclustered[zoom].addObject(layer, markerPoint);\n\t\t\t}\n\n\t\t\t//Didn't get in anything, add us to the top\n\t\t\tthis._topClusterLevel._addChild(layer);\n\t\t\tlayer.__parent = this._topClusterLevel;\n\t\t\treturn;\n\t\t},\n\n\t\t/**\n\t\t * Refreshes the icon of all \"dirty\" visible clusters.\n\t\t * Non-visible \"dirty\" clusters will be updated when they are added to the map.\n\t\t * @private\n\t\t */\n\t\t_refreshClustersIcons: function () {\n\t\t\tthis._featureGroup.eachLayer(function (c) {\n\t\t\t\tif (c instanceof L.MarkerCluster && c._iconNeedsUpdate) {\n\t\t\t\t\tc._updateIcon();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\t//Enqueue code to fire after the marker expand/contract has happened\n\t\t_enqueue: function (fn) {\n\t\t\tthis._queue.push(fn);\n\t\t\tif (!this._queueTimeout) {\n\t\t\t\tthis._queueTimeout = setTimeout(L.bind(this._processQueue, this), 300);\n\t\t\t}\n\t\t},\n\t\t_processQueue: function () {\n\t\t\tfor (var i = 0; i < this._queue.length; i++) {\n\t\t\t\tthis._queue[i].call(this);\n\t\t\t}\n\t\t\tthis._queue.length = 0;\n\t\t\tclearTimeout(this._queueTimeout);\n\t\t\tthis._queueTimeout = null;\n\t\t},\n\n\t\t//Merge and split any existing clusters that are too big or small\n\t\t_mergeSplitClusters: function () {\n\t\t\tvar mapZoom = Math.round(this._map._zoom);\n\n\t\t\t//In case we are starting to split before the animation finished\n\t\t\tthis._processQueue();\n\n\t\t\tif (this._zoom < mapZoom && this._currentShownBounds.intersects(this._getExpandedVisibleBounds())) { //Zoom in, split\n\t\t\t\tthis._animationStart();\n\t\t\t\t//Remove clusters now off screen\n\t\t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), this._zoom, this._getExpandedVisibleBounds());\n\n\t\t\t\tthis._animationZoomIn(this._zoom, mapZoom);\n\n\t\t\t} else if (this._zoom > mapZoom) { //Zoom out, merge\n\t\t\t\tthis._animationStart();\n\n\t\t\t\tthis._animationZoomOut(this._zoom, mapZoom);\n\t\t\t} else {\n\t\t\t\tthis._moveEnd();\n\t\t\t}\n\t\t},\n\n\t\t//Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)\n\t\t_getExpandedVisibleBounds: function () {\n\t\t\tif (!this.options.removeOutsideVisibleBounds) {\n\t\t\t\treturn this._mapBoundsInfinite;\n\t\t\t} else if (L.Browser.mobile) {\n\t\t\t\treturn this._checkBoundsMaxLat(this._map.getBounds());\n\t\t\t}\n\n\t\t\treturn this._checkBoundsMaxLat(this._map.getBounds().pad(1)); // Padding expands the bounds by its own dimensions but scaled with the given factor.\n\t\t},\n\n\t\t/**\n\t\t * Expands the latitude to Infinity (or -Infinity) if the input bounds reach the map projection maximum defined latitude\n\t\t * (in the case of Web/Spherical Mercator, it is 85.0511287798 / see https://en.wikipedia.org/wiki/Web_Mercator#Formulas).\n\t\t * Otherwise, the removeOutsideVisibleBounds option will remove markers beyond that limit, whereas the same markers without\n\t\t * this option (or outside MCG) will have their position floored (ceiled) by the projection and rendered at that limit,\n\t\t * making the user think that MCG \"eats\" them and never displays them again.\n\t\t * @param bounds L.LatLngBounds\n\t\t * @returns {L.LatLngBounds}\n\t\t * @private\n\t\t */\n\t\t_checkBoundsMaxLat: function (bounds) {\n\t\t\tvar maxLat = this._maxLat;\n\n\t\t\tif (maxLat !== undefined) {\n\t\t\t\tif (bounds.getNorth() >= maxLat) {\n\t\t\t\t\tbounds._northEast.lat = Infinity;\n\t\t\t\t}\n\t\t\t\tif (bounds.getSouth() <= -maxLat) {\n\t\t\t\t\tbounds._southWest.lat = -Infinity;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn bounds;\n\t\t},\n\n\t\t//Shared animation code\n\t\t_animationAddLayerNonAnimated: function (layer, newCluster) {\n\t\t\tif (newCluster === layer) {\n\t\t\t\tthis._featureGroup.addLayer(layer);\n\t\t\t} else if (newCluster._childCount === 2) {\n\t\t\t\tnewCluster._addToMap();\n\n\t\t\t\tvar markers = newCluster.getAllChildMarkers();\n\t\t\t\tthis._featureGroup.removeLayer(markers[0]);\n\t\t\t\tthis._featureGroup.removeLayer(markers[1]);\n\t\t\t} else {\n\t\t\t\tnewCluster._updateIcon();\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Extracts individual (i.e. non-group) layers from a Layer Group.\n\t\t * @param group to extract layers from.\n\t\t * @param output {Array} in which to store the extracted layers.\n\t\t * @returns {*|Array}\n\t\t * @private\n\t\t */\n\t\t_extractNonGroupLayers: function (group, output) {\n\t\t\tvar layers = group.getLayers(),\n\t\t\t i = 0,\n\t\t\t layer;\n\n\t\t\toutput = output || [];\n\n\t\t\tfor (; i < layers.length; i++) {\n\t\t\t\tlayer = layers[i];\n\n\t\t\t\tif (layer instanceof L.LayerGroup) {\n\t\t\t\t\tthis._extractNonGroupLayers(layer, output);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\toutput.push(layer);\n\t\t\t}\n\n\t\t\treturn output;\n\t\t},\n\n\t\t/**\n\t\t * Implements the singleMarkerMode option.\n\t\t * @param layer Marker to re-style using the Clusters iconCreateFunction.\n\t\t * @returns {L.Icon} The newly created icon.\n\t\t * @private\n\t\t */\n\t\t_overrideMarkerIcon: function (layer) {\n\t\t\tvar icon = layer.options.icon = this.options.iconCreateFunction({\n\t\t\t\tgetChildCount: function () {\n\t\t\t\t\treturn 1;\n\t\t\t\t},\n\t\t\t\tgetAllChildMarkers: function () {\n\t\t\t\t\treturn [layer];\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn icon;\n\t\t}\n\t});\n\n\t// Constant bounds used in case option \"removeOutsideVisibleBounds\" is set to false.\n\tL.MarkerClusterGroup.include({\n\t\t_mapBoundsInfinite: new L.LatLngBounds(new L.LatLng(-Infinity, -Infinity), new L.LatLng(Infinity, Infinity))\n\t});\n\n\tL.MarkerClusterGroup.include({\n\t\t_noAnimation: {\n\t\t\t//Non Animated versions of everything\n\t\t\t_animationStart: function () {\n\t\t\t\t//Do nothing...\n\t\t\t},\n\t\t\t_animationZoomIn: function (previousZoomLevel, newZoomLevel) {\n\t\t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel);\n\t\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());\n\n\t\t\t\t//We didn't actually animate, but we use this event to mean \"clustering animations have finished\"\n\t\t\t\tthis.fire('animationend');\n\t\t\t},\n\t\t\t_animationZoomOut: function (previousZoomLevel, newZoomLevel) {\n\t\t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel);\n\t\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());\n\n\t\t\t\t//We didn't actually animate, but we use this event to mean \"clustering animations have finished\"\n\t\t\t\tthis.fire('animationend');\n\t\t\t},\n\t\t\t_animationAddLayer: function (layer, newCluster) {\n\t\t\t\tthis._animationAddLayerNonAnimated(layer, newCluster);\n\t\t\t}\n\t\t},\n\n\t\t_withAnimation: {\n\t\t\t//Animated versions here\n\t\t\t_animationStart: function () {\n\t\t\t\tthis._map._mapPane.className += ' leaflet-cluster-anim';\n\t\t\t\tthis._inZoomAnimation++;\n\t\t\t},\n\n\t\t\t_animationZoomIn: function (previousZoomLevel, newZoomLevel) {\n\t\t\t\tvar bounds = this._getExpandedVisibleBounds(),\n\t\t\t\t fg = this._featureGroup,\n\t\t\t\t\tminZoom = Math.floor(this._map.getMinZoom()),\n\t\t\t\t i;\n\n\t\t\t\tthis._ignoreMove = true;\n\n\t\t\t\t//Add all children of current clusters to map and remove those clusters from map\n\t\t\t\tthis._topClusterLevel._recursively(bounds, previousZoomLevel, minZoom, function (c) {\n\t\t\t\t\tvar startPos = c._latlng,\n\t\t\t\t\t markers = c._markers,\n\t\t\t\t\t m;\n\n\t\t\t\t\tif (!bounds.contains(startPos)) {\n\t\t\t\t\t\tstartPos = null;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (c._isSingleParent() && previousZoomLevel + 1 === newZoomLevel) { //Immediately add the new child and remove us\n\t\t\t\t\t\tfg.removeLayer(c);\n\t\t\t\t\t\tc._recursivelyAddChildrenToMap(null, newZoomLevel, bounds);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//Fade out old cluster\n\t\t\t\t\t\tc.clusterHide();\n\t\t\t\t\t\tc._recursivelyAddChildrenToMap(startPos, newZoomLevel, bounds);\n\t\t\t\t\t}\n\n\t\t\t\t\t//Remove all markers that aren't visible any more\n\t\t\t\t\t//TODO: Do we actually need to do this on the higher levels too?\n\t\t\t\t\tfor (i = markers.length - 1; i >= 0; i--) {\n\t\t\t\t\t\tm = markers[i];\n\t\t\t\t\t\tif (!bounds.contains(m._latlng)) {\n\t\t\t\t\t\t\tfg.removeLayer(m);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\t\tthis._forceLayout();\n\n\t\t\t\t//Update opacities\n\t\t\t\tthis._topClusterLevel._recursivelyBecomeVisible(bounds, newZoomLevel);\n\t\t\t\t//TODO Maybe? Update markers in _recursivelyBecomeVisible\n\t\t\t\tfg.eachLayer(function (n) {\n\t\t\t\t\tif (!(n instanceof L.MarkerCluster) && n._icon) {\n\t\t\t\t\t\tn.clusterShow();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t//update the positions of the just added clusters/markers\n\t\t\t\tthis._topClusterLevel._recursively(bounds, previousZoomLevel, newZoomLevel, function (c) {\n\t\t\t\t\tc._recursivelyRestoreChildPositions(newZoomLevel);\n\t\t\t\t});\n\n\t\t\t\tthis._ignoreMove = false;\n\n\t\t\t\t//Remove the old clusters and close the zoom animation\n\t\t\t\tthis._enqueue(function () {\n\t\t\t\t\t//update the positions of the just added clusters/markers\n\t\t\t\t\tthis._topClusterLevel._recursively(bounds, previousZoomLevel, minZoom, function (c) {\n\t\t\t\t\t\tfg.removeLayer(c);\n\t\t\t\t\t\tc.clusterShow();\n\t\t\t\t\t});\n\n\t\t\t\t\tthis._animationEnd();\n\t\t\t\t});\n\t\t\t},\n\n\t\t\t_animationZoomOut: function (previousZoomLevel, newZoomLevel) {\n\t\t\t\tthis._animationZoomOutSingle(this._topClusterLevel, previousZoomLevel - 1, newZoomLevel);\n\n\t\t\t\t//Need to add markers for those that weren't on the map before but are now\n\t\t\t\tthis._topClusterLevel._recursivelyAddChildrenToMap(null, newZoomLevel, this._getExpandedVisibleBounds());\n\t\t\t\t//Remove markers that were on the map before but won't be now\n\t\t\t\tthis._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, Math.floor(this._map.getMinZoom()), previousZoomLevel, this._getExpandedVisibleBounds());\n\t\t\t},\n\n\t\t\t_animationAddLayer: function (layer, newCluster) {\n\t\t\t\tvar me = this,\n\t\t\t\t fg = this._featureGroup;\n\n\t\t\t\tfg.addLayer(layer);\n\t\t\t\tif (newCluster !== layer) {\n\t\t\t\t\tif (newCluster._childCount > 2) { //Was already a cluster\n\n\t\t\t\t\t\tnewCluster._updateIcon();\n\t\t\t\t\t\tthis._forceLayout();\n\t\t\t\t\t\tthis._animationStart();\n\n\t\t\t\t\t\tlayer._setPos(this._map.latLngToLayerPoint(newCluster.getLatLng()));\n\t\t\t\t\t\tlayer.clusterHide();\n\n\t\t\t\t\t\tthis._enqueue(function () {\n\t\t\t\t\t\t\tfg.removeLayer(layer);\n\t\t\t\t\t\t\tlayer.clusterShow();\n\n\t\t\t\t\t\t\tme._animationEnd();\n\t\t\t\t\t\t});\n\n\t\t\t\t\t} else { //Just became a cluster\n\t\t\t\t\t\tthis._forceLayout();\n\n\t\t\t\t\t\tme._animationStart();\n\t\t\t\t\t\tme._animationZoomOutSingle(newCluster, this._map.getMaxZoom(), this._zoom);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Private methods for animated versions.\n\t\t_animationZoomOutSingle: function (cluster, previousZoomLevel, newZoomLevel) {\n\t\t\tvar bounds = this._getExpandedVisibleBounds(),\n\t\t\t\tminZoom = Math.floor(this._map.getMinZoom());\n\n\t\t\t//Animate all of the markers in the clusters to move to their cluster center point\n\t\t\tcluster._recursivelyAnimateChildrenInAndAddSelfToMap(bounds, minZoom, previousZoomLevel + 1, newZoomLevel);\n\n\t\t\tvar me = this;\n\n\t\t\t//Update the opacity (If we immediately set it they won't animate)\n\t\t\tthis._forceLayout();\n\t\t\tcluster._recursivelyBecomeVisible(bounds, newZoomLevel);\n\n\t\t\t//TODO: Maybe use the transition timing stuff to make this more reliable\n\t\t\t//When the animations are done, tidy up\n\t\t\tthis._enqueue(function () {\n\n\t\t\t\t//This cluster stopped being a cluster before the timeout fired\n\t\t\t\tif (cluster._childCount === 1) {\n\t\t\t\t\tvar m = cluster._markers[0];\n\t\t\t\t\t//If we were in a cluster animation at the time then the opacity and position of our child could be wrong now, so fix it\n\t\t\t\t\tthis._ignoreMove = true;\n\t\t\t\t\tm.setLatLng(m.getLatLng());\n\t\t\t\t\tthis._ignoreMove = false;\n\t\t\t\t\tif (m.clusterShow) {\n\t\t\t\t\t\tm.clusterShow();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcluster._recursively(bounds, newZoomLevel, minZoom, function (c) {\n\t\t\t\t\t\tc._recursivelyRemoveChildrenFromMap(bounds, minZoom, previousZoomLevel + 1);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tme._animationEnd();\n\t\t\t});\n\t\t},\n\n\t\t_animationEnd: function () {\n\t\t\tif (this._map) {\n\t\t\t\tthis._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');\n\t\t\t}\n\t\t\tthis._inZoomAnimation--;\n\t\t\tthis.fire('animationend');\n\t\t},\n\n\t\t//Force a browser layout of stuff in the map\n\t\t// Should apply the current opacity and location to all elements so we can update them again for an animation\n\t\t_forceLayout: function () {\n\t\t\t//In my testing this works, infact offsetWidth of any element seems to work.\n\t\t\t//Could loop all this._layers and do this for each _icon if it stops working\n\n\t\t\tL.Util.falseFn(document.body.offsetWidth);\n\t\t}\n\t});\n\n\tL.markerClusterGroup = function (options) {\n\t\treturn new L.MarkerClusterGroup(options);\n\t};\n\n\tvar MarkerCluster = L.MarkerCluster = L.Marker.extend({\n\t\toptions: L.Icon.prototype.options,\n\n\t\tinitialize: function (group, zoom, a, b) {\n\n\t\t\tL.Marker.prototype.initialize.call(this, a ? (a._cLatLng || a.getLatLng()) : new L.LatLng(0, 0),\n\t { icon: this, pane: group.options.clusterPane });\n\n\t\t\tthis._group = group;\n\t\t\tthis._zoom = zoom;\n\n\t\t\tthis._markers = [];\n\t\t\tthis._childClusters = [];\n\t\t\tthis._childCount = 0;\n\t\t\tthis._iconNeedsUpdate = true;\n\t\t\tthis._boundsNeedUpdate = true;\n\n\t\t\tthis._bounds = new L.LatLngBounds();\n\n\t\t\tif (a) {\n\t\t\t\tthis._addChild(a);\n\t\t\t}\n\t\t\tif (b) {\n\t\t\t\tthis._addChild(b);\n\t\t\t}\n\t\t},\n\n\t\t//Recursively retrieve all child markers of this cluster\n\t\tgetAllChildMarkers: function (storageArray, ignoreDraggedMarker) {\n\t\t\tstorageArray = storageArray || [];\n\n\t\t\tfor (var i = this._childClusters.length - 1; i >= 0; i--) {\n\t\t\t\tthis._childClusters[i].getAllChildMarkers(storageArray);\n\t\t\t}\n\n\t\t\tfor (var j = this._markers.length - 1; j >= 0; j--) {\n\t\t\t\tif (ignoreDraggedMarker && this._markers[j].__dragStart) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstorageArray.push(this._markers[j]);\n\t\t\t}\n\n\t\t\treturn storageArray;\n\t\t},\n\n\t\t//Returns the count of how many child markers we have\n\t\tgetChildCount: function () {\n\t\t\treturn this._childCount;\n\t\t},\n\n\t\t//Zoom to the minimum of showing all of the child markers, or the extents of this cluster\n\t\tzoomToBounds: function (fitBoundsOptions) {\n\t\t\tvar childClusters = this._childClusters.slice(),\n\t\t\t\tmap = this._group._map,\n\t\t\t\tboundsZoom = map.getBoundsZoom(this._bounds),\n\t\t\t\tzoom = this._zoom + 1,\n\t\t\t\tmapZoom = map.getZoom(),\n\t\t\t\ti;\n\n\t\t\t//calculate how far we need to zoom down to see all of the markers\n\t\t\twhile (childClusters.length > 0 && boundsZoom > zoom) {\n\t\t\t\tzoom++;\n\t\t\t\tvar newClusters = [];\n\t\t\t\tfor (i = 0; i < childClusters.length; i++) {\n\t\t\t\t\tnewClusters = newClusters.concat(childClusters[i]._childClusters);\n\t\t\t\t}\n\t\t\t\tchildClusters = newClusters;\n\t\t\t}\n\n\t\t\tif (boundsZoom > zoom) {\n\t\t\t\tthis._group._map.setView(this._latlng, zoom);\n\t\t\t} else if (boundsZoom <= mapZoom) { //If fitBounds wouldn't zoom us down, zoom us down instead\n\t\t\t\tthis._group._map.setView(this._latlng, mapZoom + 1);\n\t\t\t} else {\n\t\t\t\tthis._group._map.fitBounds(this._bounds, fitBoundsOptions);\n\t\t\t}\n\t\t},\n\n\t\tgetBounds: function () {\n\t\t\tvar bounds = new L.LatLngBounds();\n\t\t\tbounds.extend(this._bounds);\n\t\t\treturn bounds;\n\t\t},\n\n\t\t_updateIcon: function () {\n\t\t\tthis._iconNeedsUpdate = true;\n\t\t\tif (this._icon) {\n\t\t\t\tthis.setIcon(this);\n\t\t\t}\n\t\t},\n\n\t\t//Cludge for Icon, we pretend to be an icon for performance\n\t\tcreateIcon: function () {\n\t\t\tif (this._iconNeedsUpdate) {\n\t\t\t\tthis._iconObj = this._group.options.iconCreateFunction(this);\n\t\t\t\tthis._iconNeedsUpdate = false;\n\t\t\t}\n\t\t\treturn this._iconObj.createIcon();\n\t\t},\n\t\tcreateShadow: function () {\n\t\t\treturn this._iconObj.createShadow();\n\t\t},\n\n\n\t\t_addChild: function (new1, isNotificationFromChild) {\n\n\t\t\tthis._iconNeedsUpdate = true;\n\n\t\t\tthis._boundsNeedUpdate = true;\n\t\t\tthis._setClusterCenter(new1);\n\n\t\t\tif (new1 instanceof L.MarkerCluster) {\n\t\t\t\tif (!isNotificationFromChild) {\n\t\t\t\t\tthis._childClusters.push(new1);\n\t\t\t\t\tnew1.__parent = this;\n\t\t\t\t}\n\t\t\t\tthis._childCount += new1._childCount;\n\t\t\t} else {\n\t\t\t\tif (!isNotificationFromChild) {\n\t\t\t\t\tthis._markers.push(new1);\n\t\t\t\t}\n\t\t\t\tthis._childCount++;\n\t\t\t}\n\n\t\t\tif (this.__parent) {\n\t\t\t\tthis.__parent._addChild(new1, true);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Makes sure the cluster center is set. If not, uses the child center if it is a cluster, or the marker position.\n\t\t * @param child L.MarkerCluster|L.Marker that will be used as cluster center if not defined yet.\n\t\t * @private\n\t\t */\n\t\t_setClusterCenter: function (child) {\n\t\t\tif (!this._cLatLng) {\n\t\t\t\t// when clustering, take position of the first point as the cluster center\n\t\t\t\tthis._cLatLng = child._cLatLng || child._latlng;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Assigns impossible bounding values so that the next extend entirely determines the new bounds.\n\t\t * This method avoids having to trash the previous L.LatLngBounds object and to create a new one, which is much slower for this class.\n\t\t * As long as the bounds are not extended, most other methods would probably fail, as they would with bounds initialized but not extended.\n\t\t * @private\n\t\t */\n\t\t_resetBounds: function () {\n\t\t\tvar bounds = this._bounds;\n\n\t\t\tif (bounds._southWest) {\n\t\t\t\tbounds._southWest.lat = Infinity;\n\t\t\t\tbounds._southWest.lng = Infinity;\n\t\t\t}\n\t\t\tif (bounds._northEast) {\n\t\t\t\tbounds._northEast.lat = -Infinity;\n\t\t\t\tbounds._northEast.lng = -Infinity;\n\t\t\t}\n\t\t},\n\n\t\t_recalculateBounds: function () {\n\t\t\tvar markers = this._markers,\n\t\t\t childClusters = this._childClusters,\n\t\t\t latSum = 0,\n\t\t\t lngSum = 0,\n\t\t\t totalCount = this._childCount,\n\t\t\t i, child, childLatLng, childCount;\n\n\t\t\t// Case where all markers are removed from the map and we are left with just an empty _topClusterLevel.\n\t\t\tif (totalCount === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Reset rather than creating a new object, for performance.\n\t\t\tthis._resetBounds();\n\n\t\t\t// Child markers.\n\t\t\tfor (i = 0; i < markers.length; i++) {\n\t\t\t\tchildLatLng = markers[i]._latlng;\n\n\t\t\t\tthis._bounds.extend(childLatLng);\n\n\t\t\t\tlatSum += childLatLng.lat;\n\t\t\t\tlngSum += childLatLng.lng;\n\t\t\t}\n\n\t\t\t// Child clusters.\n\t\t\tfor (i = 0; i < childClusters.length; i++) {\n\t\t\t\tchild = childClusters[i];\n\n\t\t\t\t// Re-compute child bounds and weighted position first if necessary.\n\t\t\t\tif (child._boundsNeedUpdate) {\n\t\t\t\t\tchild._recalculateBounds();\n\t\t\t\t}\n\n\t\t\t\tthis._bounds.extend(child._bounds);\n\n\t\t\t\tchildLatLng = child._wLatLng;\n\t\t\t\tchildCount = child._childCount;\n\n\t\t\t\tlatSum += childLatLng.lat * childCount;\n\t\t\t\tlngSum += childLatLng.lng * childCount;\n\t\t\t}\n\n\t\t\tthis._latlng = this._wLatLng = new L.LatLng(latSum / totalCount, lngSum / totalCount);\n\n\t\t\t// Reset dirty flag.\n\t\t\tthis._boundsNeedUpdate = false;\n\t\t},\n\n\t\t//Set our markers position as given and add it to the map\n\t\t_addToMap: function (startPos) {\n\t\t\tif (startPos) {\n\t\t\t\tthis._backupLatlng = this._latlng;\n\t\t\t\tthis.setLatLng(startPos);\n\t\t\t}\n\t\t\tthis._group._featureGroup.addLayer(this);\n\t\t},\n\n\t\t_recursivelyAnimateChildrenIn: function (bounds, center, maxZoom) {\n\t\t\tthis._recursively(bounds, this._group._map.getMinZoom(), maxZoom - 1,\n\t\t\t\tfunction (c) {\n\t\t\t\t\tvar markers = c._markers,\n\t\t\t\t\t\ti, m;\n\t\t\t\t\tfor (i = markers.length - 1; i >= 0; i--) {\n\t\t\t\t\t\tm = markers[i];\n\n\t\t\t\t\t\t//Only do it if the icon is still on the map\n\t\t\t\t\t\tif (m._icon) {\n\t\t\t\t\t\t\tm._setPos(center);\n\t\t\t\t\t\t\tm.clusterHide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tfunction (c) {\n\t\t\t\t\tvar childClusters = c._childClusters,\n\t\t\t\t\t\tj, cm;\n\t\t\t\t\tfor (j = childClusters.length - 1; j >= 0; j--) {\n\t\t\t\t\t\tcm = childClusters[j];\n\t\t\t\t\t\tif (cm._icon) {\n\t\t\t\t\t\t\tcm._setPos(center);\n\t\t\t\t\t\t\tcm.clusterHide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t},\n\n\t\t_recursivelyAnimateChildrenInAndAddSelfToMap: function (bounds, mapMinZoom, previousZoomLevel, newZoomLevel) {\n\t\t\tthis._recursively(bounds, newZoomLevel, mapMinZoom,\n\t\t\t\tfunction (c) {\n\t\t\t\t\tc._recursivelyAnimateChildrenIn(bounds, c._group._map.latLngToLayerPoint(c.getLatLng()).round(), previousZoomLevel);\n\n\t\t\t\t\t//TODO: depthToAnimateIn affects _isSingleParent, if there is a multizoom we may/may not be.\n\t\t\t\t\t//As a hack we only do a animation free zoom on a single level zoom, if someone does multiple levels then we always animate\n\t\t\t\t\tif (c._isSingleParent() && previousZoomLevel - 1 === newZoomLevel) {\n\t\t\t\t\t\tc.clusterShow();\n\t\t\t\t\t\tc._recursivelyRemoveChildrenFromMap(bounds, mapMinZoom, previousZoomLevel); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds\n\t\t\t\t\t} else {\n\t\t\t\t\t\tc.clusterHide();\n\t\t\t\t\t}\n\n\t\t\t\t\tc._addToMap();\n\t\t\t\t}\n\t\t\t);\n\t\t},\n\n\t\t_recursivelyBecomeVisible: function (bounds, zoomLevel) {\n\t\t\tthis._recursively(bounds, this._group._map.getMinZoom(), zoomLevel, null, function (c) {\n\t\t\t\tc.clusterShow();\n\t\t\t});\n\t\t},\n\n\t\t_recursivelyAddChildrenToMap: function (startPos, zoomLevel, bounds) {\n\t\t\tthis._recursively(bounds, this._group._map.getMinZoom() - 1, zoomLevel,\n\t\t\t\tfunction (c) {\n\t\t\t\t\tif (zoomLevel === c._zoom) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t//Add our child markers at startPos (so they can be animated out)\n\t\t\t\t\tfor (var i = c._markers.length - 1; i >= 0; i--) {\n\t\t\t\t\t\tvar nm = c._markers[i];\n\n\t\t\t\t\t\tif (!bounds.contains(nm._latlng)) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (startPos) {\n\t\t\t\t\t\t\tnm._backupLatlng = nm.getLatLng();\n\n\t\t\t\t\t\t\tnm.setLatLng(startPos);\n\t\t\t\t\t\t\tif (nm.clusterHide) {\n\t\t\t\t\t\t\t\tnm.clusterHide();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tc._group._featureGroup.addLayer(nm);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tfunction (c) {\n\t\t\t\t\tc._addToMap(startPos);\n\t\t\t\t}\n\t\t\t);\n\t\t},\n\n\t\t_recursivelyRestoreChildPositions: function (zoomLevel) {\n\t\t\t//Fix positions of child markers\n\t\t\tfor (var i = this._markers.length - 1; i >= 0; i--) {\n\t\t\t\tvar nm = this._markers[i];\n\t\t\t\tif (nm._backupLatlng) {\n\t\t\t\t\tnm.setLatLng(nm._backupLatlng);\n\t\t\t\t\tdelete nm._backupLatlng;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (zoomLevel - 1 === this._zoom) {\n\t\t\t\t//Reposition child clusters\n\t\t\t\tfor (var j = this._childClusters.length - 1; j >= 0; j--) {\n\t\t\t\t\tthis._childClusters[j]._restorePosition();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (var k = this._childClusters.length - 1; k >= 0; k--) {\n\t\t\t\t\tthis._childClusters[k]._recursivelyRestoreChildPositions(zoomLevel);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_restorePosition: function () {\n\t\t\tif (this._backupLatlng) {\n\t\t\t\tthis.setLatLng(this._backupLatlng);\n\t\t\t\tdelete this._backupLatlng;\n\t\t\t}\n\t\t},\n\n\t\t//exceptBounds: If set, don't remove any markers/clusters in it\n\t\t_recursivelyRemoveChildrenFromMap: function (previousBounds, mapMinZoom, zoomLevel, exceptBounds) {\n\t\t\tvar m, i;\n\t\t\tthis._recursively(previousBounds, mapMinZoom - 1, zoomLevel - 1,\n\t\t\t\tfunction (c) {\n\t\t\t\t\t//Remove markers at every level\n\t\t\t\t\tfor (i = c._markers.length - 1; i >= 0; i--) {\n\t\t\t\t\t\tm = c._markers[i];\n\t\t\t\t\t\tif (!exceptBounds || !exceptBounds.contains(m._latlng)) {\n\t\t\t\t\t\t\tc._group._featureGroup.removeLayer(m);\n\t\t\t\t\t\t\tif (m.clusterShow) {\n\t\t\t\t\t\t\t\tm.clusterShow();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tfunction (c) {\n\t\t\t\t\t//Remove child clusters at just the bottom level\n\t\t\t\t\tfor (i = c._childClusters.length - 1; i >= 0; i--) {\n\t\t\t\t\t\tm = c._childClusters[i];\n\t\t\t\t\t\tif (!exceptBounds || !exceptBounds.contains(m._latlng)) {\n\t\t\t\t\t\t\tc._group._featureGroup.removeLayer(m);\n\t\t\t\t\t\t\tif (m.clusterShow) {\n\t\t\t\t\t\t\t\tm.clusterShow();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t},\n\n\t\t//Run the given functions recursively to this and child clusters\n\t\t// boundsToApplyTo: a L.LatLngBounds representing the bounds of what clusters to recurse in to\n\t\t// zoomLevelToStart: zoom level to start running functions (inclusive)\n\t\t// zoomLevelToStop: zoom level to stop running functions (inclusive)\n\t\t// runAtEveryLevel: function that takes an L.MarkerCluster as an argument that should be applied on every level\n\t\t// runAtBottomLevel: function that takes an L.MarkerCluster as an argument that should be applied at only the bottom level\n\t\t_recursively: function (boundsToApplyTo, zoomLevelToStart, zoomLevelToStop, runAtEveryLevel, runAtBottomLevel) {\n\t\t\tvar childClusters = this._childClusters,\n\t\t\t zoom = this._zoom,\n\t\t\t i, c;\n\n\t\t\tif (zoomLevelToStart <= zoom) {\n\t\t\t\tif (runAtEveryLevel) {\n\t\t\t\t\trunAtEveryLevel(this);\n\t\t\t\t}\n\t\t\t\tif (runAtBottomLevel && zoom === zoomLevelToStop) {\n\t\t\t\t\trunAtBottomLevel(this);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (zoom < zoomLevelToStart || zoom < zoomLevelToStop) {\n\t\t\t\tfor (i = childClusters.length - 1; i >= 0; i--) {\n\t\t\t\t\tc = childClusters[i];\n\t\t\t\t\tif (c._boundsNeedUpdate) {\n\t\t\t\t\t\tc._recalculateBounds();\n\t\t\t\t\t}\n\t\t\t\t\tif (boundsToApplyTo.intersects(c._bounds)) {\n\t\t\t\t\t\tc._recursively(boundsToApplyTo, zoomLevelToStart, zoomLevelToStop, runAtEveryLevel, runAtBottomLevel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t//Returns true if we are the parent of only one cluster and that cluster is the same as us\n\t\t_isSingleParent: function () {\n\t\t\t//Don't need to check this._markers as the rest won't work if there are any\n\t\t\treturn this._childClusters.length > 0 && this._childClusters[0]._childCount === this._childCount;\n\t\t}\n\t});\n\n\t/*\n\t* Extends L.Marker to include two extra methods: clusterHide and clusterShow.\n\t* \n\t* They work as setOpacity(0) and setOpacity(1) respectively, but\n\t* don't overwrite the options.opacity\n\t* \n\t*/\n\n\tL.Marker.include({\n\t\tclusterHide: function () {\n\t\t\tvar backup = this.options.opacity;\n\t\t\tthis.setOpacity(0);\n\t\t\tthis.options.opacity = backup;\n\t\t\treturn this;\n\t\t},\n\t\t\n\t\tclusterShow: function () {\n\t\t\treturn this.setOpacity(this.options.opacity);\n\t\t}\n\t});\n\n\tL.DistanceGrid = function (cellSize) {\n\t\tthis._cellSize = cellSize;\n\t\tthis._sqCellSize = cellSize * cellSize;\n\t\tthis._grid = {};\n\t\tthis._objectPoint = { };\n\t};\n\n\tL.DistanceGrid.prototype = {\n\n\t\taddObject: function (obj, point) {\n\t\t\tvar x = this._getCoord(point.x),\n\t\t\t y = this._getCoord(point.y),\n\t\t\t grid = this._grid,\n\t\t\t row = grid[y] = grid[y] || {},\n\t\t\t cell = row[x] = row[x] || [],\n\t\t\t stamp = L.Util.stamp(obj);\n\n\t\t\tthis._objectPoint[stamp] = point;\n\n\t\t\tcell.push(obj);\n\t\t},\n\n\t\tupdateObject: function (obj, point) {\n\t\t\tthis.removeObject(obj);\n\t\t\tthis.addObject(obj, point);\n\t\t},\n\n\t\t//Returns true if the object was found\n\t\tremoveObject: function (obj, point) {\n\t\t\tvar x = this._getCoord(point.x),\n\t\t\t y = this._getCoord(point.y),\n\t\t\t grid = this._grid,\n\t\t\t row = grid[y] = grid[y] || {},\n\t\t\t cell = row[x] = row[x] || [],\n\t\t\t i, len;\n\n\t\t\tdelete this._objectPoint[L.Util.stamp(obj)];\n\n\t\t\tfor (i = 0, len = cell.length; i < len; i++) {\n\t\t\t\tif (cell[i] === obj) {\n\n\t\t\t\t\tcell.splice(i, 1);\n\n\t\t\t\t\tif (len === 1) {\n\t\t\t\t\t\tdelete row[x];\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t},\n\n\t\teachObject: function (fn, context) {\n\t\t\tvar i, j, k, len, row, cell, removed,\n\t\t\t grid = this._grid;\n\n\t\t\tfor (i in grid) {\n\t\t\t\trow = grid[i];\n\n\t\t\t\tfor (j in row) {\n\t\t\t\t\tcell = row[j];\n\n\t\t\t\t\tfor (k = 0, len = cell.length; k < len; k++) {\n\t\t\t\t\t\tremoved = fn.call(context, cell[k]);\n\t\t\t\t\t\tif (removed) {\n\t\t\t\t\t\t\tk--;\n\t\t\t\t\t\t\tlen--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tgetNearObject: function (point) {\n\t\t\tvar x = this._getCoord(point.x),\n\t\t\t y = this._getCoord(point.y),\n\t\t\t i, j, k, row, cell, len, obj, dist,\n\t\t\t objectPoint = this._objectPoint,\n\t\t\t closestDistSq = this._sqCellSize,\n\t\t\t closest = null;\n\n\t\t\tfor (i = y - 1; i <= y + 1; i++) {\n\t\t\t\trow = this._grid[i];\n\t\t\t\tif (row) {\n\n\t\t\t\t\tfor (j = x - 1; j <= x + 1; j++) {\n\t\t\t\t\t\tcell = row[j];\n\t\t\t\t\t\tif (cell) {\n\n\t\t\t\t\t\t\tfor (k = 0, len = cell.length; k < len; k++) {\n\t\t\t\t\t\t\t\tobj = cell[k];\n\t\t\t\t\t\t\t\tdist = this._sqDist(objectPoint[L.Util.stamp(obj)], point);\n\t\t\t\t\t\t\t\tif (dist < closestDistSq ||\n\t\t\t\t\t\t\t\t\tdist <= closestDistSq && closest === null) {\n\t\t\t\t\t\t\t\t\tclosestDistSq = dist;\n\t\t\t\t\t\t\t\t\tclosest = obj;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn closest;\n\t\t},\n\n\t\t_getCoord: function (x) {\n\t\t\tvar coord = Math.floor(x / this._cellSize);\n\t\t\treturn isFinite(coord) ? coord : x;\n\t\t},\n\n\t\t_sqDist: function (p, p2) {\n\t\t\tvar dx = p2.x - p.x,\n\t\t\t dy = p2.y - p.y;\n\t\t\treturn dx * dx + dy * dy;\n\t\t}\n\t};\n\n\t/* Copyright (c) 2012 the authors listed at the following URL, and/or\n\tthe authors of referenced articles or incorporated external code:\n\thttp://en.literateprograms.org/Quickhull_(Javascript)?action=history&offset=20120410175256\n\n\tPermission is hereby granted, free of charge, to any person obtaining\n\ta copy of this software and associated documentation files (the\n\t\"Software\"), to deal in the Software without restriction, including\n\twithout limitation the rights to use, copy, modify, merge, publish,\n\tdistribute, sublicense, and/or sell copies of the Software, and to\n\tpermit persons to whom the Software is furnished to do so, subject to\n\tthe following conditions:\n\n\tThe above copyright notice and this permission notice shall be\n\tincluded in all copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n\tEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\tMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n\tIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n\tCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n\tTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n\tSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\tRetrieved from: http://en.literateprograms.org/Quickhull_(Javascript)?oldid=18434\n\t*/\n\n\t(function () {\n\t\tL.QuickHull = {\n\n\t\t\t/*\n\t\t\t * @param {Object} cpt a point to be measured from the baseline\n\t\t\t * @param {Array} bl the baseline, as represented by a two-element\n\t\t\t * array of latlng objects.\n\t\t\t * @returns {Number} an approximate distance measure\n\t\t\t */\n\t\t\tgetDistant: function (cpt, bl) {\n\t\t\t\tvar vY = bl[1].lat - bl[0].lat,\n\t\t\t\t\tvX = bl[0].lng - bl[1].lng;\n\t\t\t\treturn (vX * (cpt.lat - bl[0].lat) + vY * (cpt.lng - bl[0].lng));\n\t\t\t},\n\n\t\t\t/*\n\t\t\t * @param {Array} baseLine a two-element array of latlng objects\n\t\t\t * representing the baseline to project from\n\t\t\t * @param {Array} latLngs an array of latlng objects\n\t\t\t * @returns {Object} the maximum point and all new points to stay\n\t\t\t * in consideration for the hull.\n\t\t\t */\n\t\t\tfindMostDistantPointFromBaseLine: function (baseLine, latLngs) {\n\t\t\t\tvar maxD = 0,\n\t\t\t\t\tmaxPt = null,\n\t\t\t\t\tnewPoints = [],\n\t\t\t\t\ti, pt, d;\n\n\t\t\t\tfor (i = latLngs.length - 1; i >= 0; i--) {\n\t\t\t\t\tpt = latLngs[i];\n\t\t\t\t\td = this.getDistant(pt, baseLine);\n\n\t\t\t\t\tif (d > 0) {\n\t\t\t\t\t\tnewPoints.push(pt);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (d > maxD) {\n\t\t\t\t\t\tmaxD = d;\n\t\t\t\t\t\tmaxPt = pt;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn { maxPoint: maxPt, newPoints: newPoints };\n\t\t\t},\n\n\n\t\t\t/*\n\t\t\t * Given a baseline, compute the convex hull of latLngs as an array\n\t\t\t * of latLngs.\n\t\t\t *\n\t\t\t * @param {Array} latLngs\n\t\t\t * @returns {Array}\n\t\t\t */\n\t\t\tbuildConvexHull: function (baseLine, latLngs) {\n\t\t\t\tvar convexHullBaseLines = [],\n\t\t\t\t\tt = this.findMostDistantPointFromBaseLine(baseLine, latLngs);\n\n\t\t\t\tif (t.maxPoint) { // if there is still a point \"outside\" the base line\n\t\t\t\t\tconvexHullBaseLines =\n\t\t\t\t\t\tconvexHullBaseLines.concat(\n\t\t\t\t\t\t\tthis.buildConvexHull([baseLine[0], t.maxPoint], t.newPoints)\n\t\t\t\t\t\t);\n\t\t\t\t\tconvexHullBaseLines =\n\t\t\t\t\t\tconvexHullBaseLines.concat(\n\t\t\t\t\t\t\tthis.buildConvexHull([t.maxPoint, baseLine[1]], t.newPoints)\n\t\t\t\t\t\t);\n\t\t\t\t\treturn convexHullBaseLines;\n\t\t\t\t} else { // if there is no more point \"outside\" the base line, the current base line is part of the convex hull\n\t\t\t\t\treturn [baseLine[0]];\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/*\n\t\t\t * Given an array of latlngs, compute a convex hull as an array\n\t\t\t * of latlngs\n\t\t\t *\n\t\t\t * @param {Array} latLngs\n\t\t\t * @returns {Array}\n\t\t\t */\n\t\t\tgetConvexHull: function (latLngs) {\n\t\t\t\t// find first baseline\n\t\t\t\tvar maxLat = false, minLat = false,\n\t\t\t\t\tmaxLng = false, minLng = false,\n\t\t\t\t\tmaxLatPt = null, minLatPt = null,\n\t\t\t\t\tmaxLngPt = null, minLngPt = null,\n\t\t\t\t\tmaxPt = null, minPt = null,\n\t\t\t\t\ti;\n\n\t\t\t\tfor (i = latLngs.length - 1; i >= 0; i--) {\n\t\t\t\t\tvar pt = latLngs[i];\n\t\t\t\t\tif (maxLat === false || pt.lat > maxLat) {\n\t\t\t\t\t\tmaxLatPt = pt;\n\t\t\t\t\t\tmaxLat = pt.lat;\n\t\t\t\t\t}\n\t\t\t\t\tif (minLat === false || pt.lat < minLat) {\n\t\t\t\t\t\tminLatPt = pt;\n\t\t\t\t\t\tminLat = pt.lat;\n\t\t\t\t\t}\n\t\t\t\t\tif (maxLng === false || pt.lng > maxLng) {\n\t\t\t\t\t\tmaxLngPt = pt;\n\t\t\t\t\t\tmaxLng = pt.lng;\n\t\t\t\t\t}\n\t\t\t\t\tif (minLng === false || pt.lng < minLng) {\n\t\t\t\t\t\tminLngPt = pt;\n\t\t\t\t\t\tminLng = pt.lng;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (minLat !== maxLat) {\n\t\t\t\t\tminPt = minLatPt;\n\t\t\t\t\tmaxPt = maxLatPt;\n\t\t\t\t} else {\n\t\t\t\t\tminPt = minLngPt;\n\t\t\t\t\tmaxPt = maxLngPt;\n\t\t\t\t}\n\n\t\t\t\tvar ch = [].concat(this.buildConvexHull([minPt, maxPt], latLngs),\n\t\t\t\t\t\t\t\t\tthis.buildConvexHull([maxPt, minPt], latLngs));\n\t\t\t\treturn ch;\n\t\t\t}\n\t\t};\n\t}());\n\n\tL.MarkerCluster.include({\n\t\tgetConvexHull: function () {\n\t\t\tvar childMarkers = this.getAllChildMarkers(),\n\t\t\t\tpoints = [],\n\t\t\t\tp, i;\n\n\t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\n\t\t\t\tp = childMarkers[i].getLatLng();\n\t\t\t\tpoints.push(p);\n\t\t\t}\n\n\t\t\treturn L.QuickHull.getConvexHull(points);\n\t\t}\n\t});\n\n\t//This code is 100% based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet\n\t//Huge thanks to jawj for implementing it first to make my job easy :-)\n\n\tL.MarkerCluster.include({\n\n\t\t_2PI: Math.PI * 2,\n\t\t_circleFootSeparation: 25, //related to circumference of circle\n\t\t_circleStartAngle: 0,\n\n\t\t_spiralFootSeparation: 28, //related to size of spiral (experiment!)\n\t\t_spiralLengthStart: 11,\n\t\t_spiralLengthFactor: 5,\n\n\t\t_circleSpiralSwitchover: 9, //show spiral instead of circle from this marker count upwards.\n\t\t\t\t\t\t\t\t\t// 0 -> always spiral; Infinity -> always circle\n\n\t\tspiderfy: function () {\n\t\t\tif (this._group._spiderfied === this || this._group._inZoomAnimation) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar childMarkers = this.getAllChildMarkers(null, true),\n\t\t\t\tgroup = this._group,\n\t\t\t\tmap = group._map,\n\t\t\t\tcenter = map.latLngToLayerPoint(this._latlng),\n\t\t\t\tpositions;\n\n\t\t\tthis._group._unspiderfy();\n\t\t\tthis._group._spiderfied = this;\n\n\t\t\t//TODO Maybe: childMarkers order by distance to center\n\n\t\t\tif (this._group.options.spiderfyShapePositions) {\n\t\t\t\tpositions = this._group.options.spiderfyShapePositions(childMarkers.length, center);\n\t\t\t} else if (childMarkers.length >= this._circleSpiralSwitchover) {\n\t\t\t\tpositions = this._generatePointsSpiral(childMarkers.length, center);\n\t\t\t} else {\n\t\t\t\tcenter.y += 10; // Otherwise circles look wrong => hack for standard blue icon, renders differently for other icons.\n\t\t\t\tpositions = this._generatePointsCircle(childMarkers.length, center);\n\t\t\t}\n\n\t\t\tthis._animationSpiderfy(childMarkers, positions);\n\t\t},\n\n\t\tunspiderfy: function (zoomDetails) {\n\t\t\t/// Argument from zoomanim if being called in a zoom animation or null otherwise\n\t\t\tif (this._group._inZoomAnimation) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis._animationUnspiderfy(zoomDetails);\n\n\t\t\tthis._group._spiderfied = null;\n\t\t},\n\n\t\t_generatePointsCircle: function (count, centerPt) {\n\t\t\tvar circumference = this._group.options.spiderfyDistanceMultiplier * this._circleFootSeparation * (2 + count),\n\t\t\t\tlegLength = circumference / this._2PI, //radius from circumference\n\t\t\t\tangleStep = this._2PI / count,\n\t\t\t\tres = [],\n\t\t\t\ti, angle;\n\n\t\t\tlegLength = Math.max(legLength, 35); // Minimum distance to get outside the cluster icon.\n\n\t\t\tres.length = count;\n\n\t\t\tfor (i = 0; i < count; i++) { // Clockwise, like spiral.\n\t\t\t\tangle = this._circleStartAngle + i * angleStep;\n\t\t\t\tres[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();\n\t\t\t}\n\n\t\t\treturn res;\n\t\t},\n\n\t\t_generatePointsSpiral: function (count, centerPt) {\n\t\t\tvar spiderfyDistanceMultiplier = this._group.options.spiderfyDistanceMultiplier,\n\t\t\t\tlegLength = spiderfyDistanceMultiplier * this._spiralLengthStart,\n\t\t\t\tseparation = spiderfyDistanceMultiplier * this._spiralFootSeparation,\n\t\t\t\tlengthFactor = spiderfyDistanceMultiplier * this._spiralLengthFactor * this._2PI,\n\t\t\t\tangle = 0,\n\t\t\t\tres = [],\n\t\t\t\ti;\n\n\t\t\tres.length = count;\n\n\t\t\t// Higher index, closer position to cluster center.\n\t\t\tfor (i = count; i >= 0; i--) {\n\t\t\t\t// Skip the first position, so that we are already farther from center and we avoid\n\t\t\t\t// being under the default cluster icon (especially important for Circle Markers).\n\t\t\t\tif (i < count) {\n\t\t\t\t\tres[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();\n\t\t\t\t}\n\t\t\t\tangle += separation / legLength + i * 0.0005;\n\t\t\t\tlegLength += lengthFactor / angle;\n\t\t\t}\n\t\t\treturn res;\n\t\t},\n\n\t\t_noanimationUnspiderfy: function () {\n\t\t\tvar group = this._group,\n\t\t\t\tmap = group._map,\n\t\t\t\tfg = group._featureGroup,\n\t\t\t\tchildMarkers = this.getAllChildMarkers(null, true),\n\t\t\t\tm, i;\n\n\t\t\tgroup._ignoreMove = true;\n\n\t\t\tthis.setOpacity(1);\n\t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\n\t\t\t\tm = childMarkers[i];\n\n\t\t\t\tfg.removeLayer(m);\n\n\t\t\t\tif (m._preSpiderfyLatlng) {\n\t\t\t\t\tm.setLatLng(m._preSpiderfyLatlng);\n\t\t\t\t\tdelete m._preSpiderfyLatlng;\n\t\t\t\t}\n\t\t\t\tif (m.setZIndexOffset) {\n\t\t\t\t\tm.setZIndexOffset(0);\n\t\t\t\t}\n\n\t\t\t\tif (m._spiderLeg) {\n\t\t\t\t\tmap.removeLayer(m._spiderLeg);\n\t\t\t\t\tdelete m._spiderLeg;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tgroup.fire('unspiderfied', {\n\t\t\t\tcluster: this,\n\t\t\t\tmarkers: childMarkers\n\t\t\t});\n\t\t\tgroup._ignoreMove = false;\n\t\t\tgroup._spiderfied = null;\n\t\t}\n\t});\n\n\t//Non Animated versions of everything\n\tL.MarkerClusterNonAnimated = L.MarkerCluster.extend({\n\t\t_animationSpiderfy: function (childMarkers, positions) {\n\t\t\tvar group = this._group,\n\t\t\t\tmap = group._map,\n\t\t\t\tfg = group._featureGroup,\n\t\t\t\tlegOptions = this._group.options.spiderLegPolylineOptions,\n\t\t\t\ti, m, leg, newPos;\n\n\t\t\tgroup._ignoreMove = true;\n\n\t\t\t// Traverse in ascending order to make sure that inner circleMarkers are on top of further legs. Normal markers are re-ordered by newPosition.\n\t\t\t// The reverse order trick no longer improves performance on modern browsers.\n\t\t\tfor (i = 0; i < childMarkers.length; i++) {\n\t\t\t\tnewPos = map.layerPointToLatLng(positions[i]);\n\t\t\t\tm = childMarkers[i];\n\n\t\t\t\t// Add the leg before the marker, so that in case the latter is a circleMarker, the leg is behind it.\n\t\t\t\tleg = new L.Polyline([this._latlng, newPos], legOptions);\n\t\t\t\tmap.addLayer(leg);\n\t\t\t\tm._spiderLeg = leg;\n\n\t\t\t\t// Now add the marker.\n\t\t\t\tm._preSpiderfyLatlng = m._latlng;\n\t\t\t\tm.setLatLng(newPos);\n\t\t\t\tif (m.setZIndexOffset) {\n\t\t\t\t\tm.setZIndexOffset(1000000); //Make these appear on top of EVERYTHING\n\t\t\t\t}\n\n\t\t\t\tfg.addLayer(m);\n\t\t\t}\n\t\t\tthis.setOpacity(0.3);\n\n\t\t\tgroup._ignoreMove = false;\n\t\t\tgroup.fire('spiderfied', {\n\t\t\t\tcluster: this,\n\t\t\t\tmarkers: childMarkers\n\t\t\t});\n\t\t},\n\n\t\t_animationUnspiderfy: function () {\n\t\t\tthis._noanimationUnspiderfy();\n\t\t}\n\t});\n\n\t//Animated versions here\n\tL.MarkerCluster.include({\n\n\t\t_animationSpiderfy: function (childMarkers, positions) {\n\t\t\tvar me = this,\n\t\t\t\tgroup = this._group,\n\t\t\t\tmap = group._map,\n\t\t\t\tfg = group._featureGroup,\n\t\t\t\tthisLayerLatLng = this._latlng,\n\t\t\t\tthisLayerPos = map.latLngToLayerPoint(thisLayerLatLng),\n\t\t\t\tsvg = L.Path.SVG,\n\t\t\t\tlegOptions = L.extend({}, this._group.options.spiderLegPolylineOptions), // Copy the options so that we can modify them for animation.\n\t\t\t\tfinalLegOpacity = legOptions.opacity,\n\t\t\t\ti, m, leg, legPath, legLength, newPos;\n\n\t\t\tif (finalLegOpacity === undefined) {\n\t\t\t\tfinalLegOpacity = L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity;\n\t\t\t}\n\n\t\t\tif (svg) {\n\t\t\t\t// If the initial opacity of the spider leg is not 0 then it appears before the animation starts.\n\t\t\t\tlegOptions.opacity = 0;\n\n\t\t\t\t// Add the class for CSS transitions.\n\t\t\t\tlegOptions.className = (legOptions.className || '') + ' leaflet-cluster-spider-leg';\n\t\t\t} else {\n\t\t\t\t// Make sure we have a defined opacity.\n\t\t\t\tlegOptions.opacity = finalLegOpacity;\n\t\t\t}\n\n\t\t\tgroup._ignoreMove = true;\n\n\t\t\t// Add markers and spider legs to map, hidden at our center point.\n\t\t\t// Traverse in ascending order to make sure that inner circleMarkers are on top of further legs. Normal markers are re-ordered by newPosition.\n\t\t\t// The reverse order trick no longer improves performance on modern browsers.\n\t\t\tfor (i = 0; i < childMarkers.length; i++) {\n\t\t\t\tm = childMarkers[i];\n\n\t\t\t\tnewPos = map.layerPointToLatLng(positions[i]);\n\n\t\t\t\t// Add the leg before the marker, so that in case the latter is a circleMarker, the leg is behind it.\n\t\t\t\tleg = new L.Polyline([thisLayerLatLng, newPos], legOptions);\n\t\t\t\tmap.addLayer(leg);\n\t\t\t\tm._spiderLeg = leg;\n\n\t\t\t\t// Explanations: https://jakearchibald.com/2013/animated-line-drawing-svg/\n\t\t\t\t// In our case the transition property is declared in the CSS file.\n\t\t\t\tif (svg) {\n\t\t\t\t\tlegPath = leg._path;\n\t\t\t\t\tlegLength = legPath.getTotalLength() + 0.1; // Need a small extra length to avoid remaining dot in Firefox.\n\t\t\t\t\tlegPath.style.strokeDasharray = legLength; // Just 1 length is enough, it will be duplicated.\n\t\t\t\t\tlegPath.style.strokeDashoffset = legLength;\n\t\t\t\t}\n\n\t\t\t\t// If it is a marker, add it now and we'll animate it out\n\t\t\t\tif (m.setZIndexOffset) {\n\t\t\t\t\tm.setZIndexOffset(1000000); // Make normal markers appear on top of EVERYTHING\n\t\t\t\t}\n\t\t\t\tif (m.clusterHide) {\n\t\t\t\t\tm.clusterHide();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Vectors just get immediately added\n\t\t\t\tfg.addLayer(m);\n\n\t\t\t\tif (m._setPos) {\n\t\t\t\t\tm._setPos(thisLayerPos);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tgroup._forceLayout();\n\t\t\tgroup._animationStart();\n\n\t\t\t// Reveal markers and spider legs.\n\t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\n\t\t\t\tnewPos = map.layerPointToLatLng(positions[i]);\n\t\t\t\tm = childMarkers[i];\n\n\t\t\t\t//Move marker to new position\n\t\t\t\tm._preSpiderfyLatlng = m._latlng;\n\t\t\t\tm.setLatLng(newPos);\n\t\t\t\t\n\t\t\t\tif (m.clusterShow) {\n\t\t\t\t\tm.clusterShow();\n\t\t\t\t}\n\n\t\t\t\t// Animate leg (animation is actually delegated to CSS transition).\n\t\t\t\tif (svg) {\n\t\t\t\t\tleg = m._spiderLeg;\n\t\t\t\t\tlegPath = leg._path;\n\t\t\t\t\tlegPath.style.strokeDashoffset = 0;\n\t\t\t\t\t//legPath.style.strokeOpacity = finalLegOpacity;\n\t\t\t\t\tleg.setStyle({opacity: finalLegOpacity});\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setOpacity(0.3);\n\n\t\t\tgroup._ignoreMove = false;\n\n\t\t\tsetTimeout(function () {\n\t\t\t\tgroup._animationEnd();\n\t\t\t\tgroup.fire('spiderfied', {\n\t\t\t\t\tcluster: me,\n\t\t\t\t\tmarkers: childMarkers\n\t\t\t\t});\n\t\t\t}, 200);\n\t\t},\n\n\t\t_animationUnspiderfy: function (zoomDetails) {\n\t\t\tvar me = this,\n\t\t\t\tgroup = this._group,\n\t\t\t\tmap = group._map,\n\t\t\t\tfg = group._featureGroup,\n\t\t\t\tthisLayerPos = zoomDetails ? map._latLngToNewLayerPoint(this._latlng, zoomDetails.zoom, zoomDetails.center) : map.latLngToLayerPoint(this._latlng),\n\t\t\t\tchildMarkers = this.getAllChildMarkers(null, true),\n\t\t\t\tsvg = L.Path.SVG,\n\t\t\t\tm, i, leg, legPath, legLength, nonAnimatable;\n\n\t\t\tgroup._ignoreMove = true;\n\t\t\tgroup._animationStart();\n\n\t\t\t//Make us visible and bring the child markers back in\n\t\t\tthis.setOpacity(1);\n\t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\n\t\t\t\tm = childMarkers[i];\n\n\t\t\t\t//Marker was added to us after we were spiderfied\n\t\t\t\tif (!m._preSpiderfyLatlng) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t//Close any popup on the marker first, otherwise setting the location of the marker will make the map scroll\n\t\t\t\tm.closePopup();\n\n\t\t\t\t//Fix up the location to the real one\n\t\t\t\tm.setLatLng(m._preSpiderfyLatlng);\n\t\t\t\tdelete m._preSpiderfyLatlng;\n\n\t\t\t\t//Hack override the location to be our center\n\t\t\t\tnonAnimatable = true;\n\t\t\t\tif (m._setPos) {\n\t\t\t\t\tm._setPos(thisLayerPos);\n\t\t\t\t\tnonAnimatable = false;\n\t\t\t\t}\n\t\t\t\tif (m.clusterHide) {\n\t\t\t\t\tm.clusterHide();\n\t\t\t\t\tnonAnimatable = false;\n\t\t\t\t}\n\t\t\t\tif (nonAnimatable) {\n\t\t\t\t\tfg.removeLayer(m);\n\t\t\t\t}\n\n\t\t\t\t// Animate the spider leg back in (animation is actually delegated to CSS transition).\n\t\t\t\tif (svg) {\n\t\t\t\t\tleg = m._spiderLeg;\n\t\t\t\t\tlegPath = leg._path;\n\t\t\t\t\tlegLength = legPath.getTotalLength() + 0.1;\n\t\t\t\t\tlegPath.style.strokeDashoffset = legLength;\n\t\t\t\t\tleg.setStyle({opacity: 0});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tgroup._ignoreMove = false;\n\n\t\t\tsetTimeout(function () {\n\t\t\t\t//If we have only <= one child left then that marker will be shown on the map so don't remove it!\n\t\t\t\tvar stillThereChildCount = 0;\n\t\t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\n\t\t\t\t\tm = childMarkers[i];\n\t\t\t\t\tif (m._spiderLeg) {\n\t\t\t\t\t\tstillThereChildCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tfor (i = childMarkers.length - 1; i >= 0; i--) {\n\t\t\t\t\tm = childMarkers[i];\n\n\t\t\t\t\tif (!m._spiderLeg) { //Has already been unspiderfied\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (m.clusterShow) {\n\t\t\t\t\t\tm.clusterShow();\n\t\t\t\t\t}\n\t\t\t\t\tif (m.setZIndexOffset) {\n\t\t\t\t\t\tm.setZIndexOffset(0);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (stillThereChildCount > 1) {\n\t\t\t\t\t\tfg.removeLayer(m);\n\t\t\t\t\t}\n\n\t\t\t\t\tmap.removeLayer(m._spiderLeg);\n\t\t\t\t\tdelete m._spiderLeg;\n\t\t\t\t}\n\t\t\t\tgroup._animationEnd();\n\t\t\t\tgroup.fire('unspiderfied', {\n\t\t\t\t\tcluster: me,\n\t\t\t\t\tmarkers: childMarkers\n\t\t\t\t});\n\t\t\t}, 200);\n\t\t}\n\t});\n\n\n\tL.MarkerClusterGroup.include({\n\t\t//The MarkerCluster currently spiderfied (if any)\n\t\t_spiderfied: null,\n\n\t\tunspiderfy: function () {\n\t\t\tthis._unspiderfy.apply(this, arguments);\n\t\t},\n\n\t\t_spiderfierOnAdd: function () {\n\t\t\tthis._map.on('click', this._unspiderfyWrapper, this);\n\n\t\t\tif (this._map.options.zoomAnimation) {\n\t\t\t\tthis._map.on('zoomstart', this._unspiderfyZoomStart, this);\n\t\t\t}\n\t\t\t//Browsers without zoomAnimation or a big zoom don't fire zoomstart\n\t\t\tthis._map.on('zoomend', this._noanimationUnspiderfy, this);\n\n\t\t\tif (!L.Browser.touch) {\n\t\t\t\tthis._map.getRenderer(this);\n\t\t\t\t//Needs to happen in the pageload, not after, or animations don't work in webkit\n\t\t\t\t// http://stackoverflow.com/questions/8455200/svg-animate-with-dynamically-added-elements\n\t\t\t\t//Disable on touch browsers as the animation messes up on a touch zoom and isn't very noticable\n\t\t\t}\n\t\t},\n\n\t\t_spiderfierOnRemove: function () {\n\t\t\tthis._map.off('click', this._unspiderfyWrapper, this);\n\t\t\tthis._map.off('zoomstart', this._unspiderfyZoomStart, this);\n\t\t\tthis._map.off('zoomanim', this._unspiderfyZoomAnim, this);\n\t\t\tthis._map.off('zoomend', this._noanimationUnspiderfy, this);\n\n\t\t\t//Ensure that markers are back where they should be\n\t\t\t// Use no animation to avoid a sticky leaflet-cluster-anim class on mapPane\n\t\t\tthis._noanimationUnspiderfy();\n\t\t},\n\n\t\t//On zoom start we add a zoomanim handler so that we are guaranteed to be last (after markers are animated)\n\t\t//This means we can define the animation they do rather than Markers doing an animation to their actual location\n\t\t_unspiderfyZoomStart: function () {\n\t\t\tif (!this._map) { //May have been removed from the map by a zoomEnd handler\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._map.on('zoomanim', this._unspiderfyZoomAnim, this);\n\t\t},\n\n\t\t_unspiderfyZoomAnim: function (zoomDetails) {\n\t\t\t//Wait until the first zoomanim after the user has finished touch-zooming before running the animation\n\t\t\tif (L.DomUtil.hasClass(this._map._mapPane, 'leaflet-touching')) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._map.off('zoomanim', this._unspiderfyZoomAnim, this);\n\t\t\tthis._unspiderfy(zoomDetails);\n\t\t},\n\n\t\t_unspiderfyWrapper: function () {\n\t\t\t/// _unspiderfy but passes no arguments\n\t\t\tthis._unspiderfy();\n\t\t},\n\n\t\t_unspiderfy: function (zoomDetails) {\n\t\t\tif (this._spiderfied) {\n\t\t\t\tthis._spiderfied.unspiderfy(zoomDetails);\n\t\t\t}\n\t\t},\n\n\t\t_noanimationUnspiderfy: function () {\n\t\t\tif (this._spiderfied) {\n\t\t\t\tthis._spiderfied._noanimationUnspiderfy();\n\t\t\t}\n\t\t},\n\n\t\t//If the given layer is currently being spiderfied then we unspiderfy it so it isn't on the map anymore etc\n\t\t_unspiderfyLayer: function (layer) {\n\t\t\tif (layer._spiderLeg) {\n\t\t\t\tthis._featureGroup.removeLayer(layer);\n\n\t\t\t\tif (layer.clusterShow) {\n\t\t\t\t\tlayer.clusterShow();\n\t\t\t\t}\n\t\t\t\t\t//Position will be fixed up immediately in _animationUnspiderfy\n\t\t\t\tif (layer.setZIndexOffset) {\n\t\t\t\t\tlayer.setZIndexOffset(0);\n\t\t\t\t}\n\n\t\t\t\tthis._map.removeLayer(layer._spiderLeg);\n\t\t\t\tdelete layer._spiderLeg;\n\t\t\t}\n\t\t}\n\t});\n\n\t/**\n\t * Adds 1 public method to MCG and 1 to L.Marker to facilitate changing\n\t * markers' icon options and refreshing their icon and their parent clusters\n\t * accordingly (case where their iconCreateFunction uses data of childMarkers\n\t * to make up the cluster icon).\n\t */\n\n\n\tL.MarkerClusterGroup.include({\n\t\t/**\n\t\t * Updates the icon of all clusters which are parents of the given marker(s).\n\t\t * In singleMarkerMode, also updates the given marker(s) icon.\n\t\t * @param layers L.MarkerClusterGroup|L.LayerGroup|Array(L.Marker)|Map(L.Marker)|\n\t\t * L.MarkerCluster|L.Marker (optional) list of markers (or single marker) whose parent\n\t\t * clusters need to be updated. If not provided, retrieves all child markers of this.\n\t\t * @returns {L.MarkerClusterGroup}\n\t\t */\n\t\trefreshClusters: function (layers) {\n\t\t\tif (!layers) {\n\t\t\t\tlayers = this._topClusterLevel.getAllChildMarkers();\n\t\t\t} else if (layers instanceof L.MarkerClusterGroup) {\n\t\t\t\tlayers = layers._topClusterLevel.getAllChildMarkers();\n\t\t\t} else if (layers instanceof L.LayerGroup) {\n\t\t\t\tlayers = layers._layers;\n\t\t\t} else if (layers instanceof L.MarkerCluster) {\n\t\t\t\tlayers = layers.getAllChildMarkers();\n\t\t\t} else if (layers instanceof L.Marker) {\n\t\t\t\tlayers = [layers];\n\t\t\t} // else: must be an Array(L.Marker)|Map(L.Marker)\n\t\t\tthis._flagParentsIconsNeedUpdate(layers);\n\t\t\tthis._refreshClustersIcons();\n\n\t\t\t// In case of singleMarkerMode, also re-draw the markers.\n\t\t\tif (this.options.singleMarkerMode) {\n\t\t\t\tthis._refreshSingleMarkerModeMarkers(layers);\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\t/**\n\t\t * Simply flags all parent clusters of the given markers as having a \"dirty\" icon.\n\t\t * @param layers Array(L.Marker)|Map(L.Marker) list of markers.\n\t\t * @private\n\t\t */\n\t\t_flagParentsIconsNeedUpdate: function (layers) {\n\t\t\tvar id, parent;\n\n\t\t\t// Assumes layers is an Array or an Object whose prototype is non-enumerable.\n\t\t\tfor (id in layers) {\n\t\t\t\t// Flag parent clusters' icon as \"dirty\", all the way up.\n\t\t\t\t// Dumb process that flags multiple times upper parents, but still\n\t\t\t\t// much more efficient than trying to be smart and make short lists,\n\t\t\t\t// at least in the case of a hierarchy following a power law:\n\t\t\t\t// http://jsperf.com/flag-nodes-in-power-hierarchy/2\n\t\t\t\tparent = layers[id].__parent;\n\t\t\t\twhile (parent) {\n\t\t\t\t\tparent._iconNeedsUpdate = true;\n\t\t\t\t\tparent = parent.__parent;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Re-draws the icon of the supplied markers.\n\t\t * To be used in singleMarkerMode only.\n\t\t * @param layers Array(L.Marker)|Map(L.Marker) list of markers.\n\t\t * @private\n\t\t */\n\t\t_refreshSingleMarkerModeMarkers: function (layers) {\n\t\t\tvar id, layer;\n\n\t\t\tfor (id in layers) {\n\t\t\t\tlayer = layers[id];\n\n\t\t\t\t// Make sure we do not override markers that do not belong to THIS group.\n\t\t\t\tif (this.hasLayer(layer)) {\n\t\t\t\t\t// Need to re-create the icon first, then re-draw the marker.\n\t\t\t\t\tlayer.setIcon(this._overrideMarkerIcon(layer));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\tL.Marker.include({\n\t\t/**\n\t\t * Updates the given options in the marker's icon and refreshes the marker.\n\t\t * @param options map object of icon options.\n\t\t * @param directlyRefreshClusters boolean (optional) true to trigger\n\t\t * MCG.refreshClustersOf() right away with this single marker.\n\t\t * @returns {L.Marker}\n\t\t */\n\t\trefreshIconOptions: function (options, directlyRefreshClusters) {\n\t\t\tvar icon = this.options.icon;\n\n\t\t\tL.setOptions(icon, options);\n\n\t\t\tthis.setIcon(icon);\n\n\t\t\t// Shortcut to refresh the associated MCG clusters right away.\n\t\t\t// To be used when refreshing a single marker.\n\t\t\t// Otherwise, better use MCG.refreshClusters() once at the end with\n\t\t\t// the list of modified markers.\n\t\t\tif (directlyRefreshClusters && this.__parent) {\n\t\t\t\tthis.__parent._group.refreshClusters(this);\n\t\t\t}\n\n\t\t\treturn this;\n\t\t}\n\t});\n\n\texports.MarkerClusterGroup = MarkerClusterGroup;\n\texports.MarkerCluster = MarkerCluster;\n\n\tObject.defineProperty(exports, '__esModule', { value: true });\n\n}));\n//# sourceMappingURL=leaflet.markercluster-src.js.map\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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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","// Styles\nimport './VSnackbar.sass'\n\n// Components\nimport VSheet from '../VSheet/VSheet'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\nimport Toggleable from '../../mixins/toggleable'\nimport { factory as PositionableFactory } from '../../mixins/positionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\nimport { deprecate, removed } from '../../util/console'\n\n// Types\nimport { PropType, VNode } from 'vue'\n\nexport default mixins(\n VSheet,\n Colorable,\n Toggleable,\n PositionableFactory([\n 'absolute',\n 'bottom',\n 'left',\n 'right',\n 'top',\n ])\n/* @vue/component */\n).extend({\n name: 'v-snackbar',\n\n props: {\n app: Boolean,\n centered: Boolean,\n contentClass: {\n type: String,\n default: '',\n },\n multiLine: Boolean,\n text: Boolean,\n timeout: {\n type: [Number, String],\n default: 5000,\n },\n transition: {\n type: [Boolean, String] as PropType,\n default: 'v-snack-transition',\n validator: v => typeof v === 'string' || v === false,\n },\n vertical: Boolean,\n },\n\n data: () => ({\n activeTimeout: -1,\n }),\n\n computed: {\n classes (): object {\n return {\n 'v-snack--absolute': this.absolute,\n 'v-snack--active': this.isActive,\n 'v-snack--bottom': this.bottom || !this.top,\n 'v-snack--centered': this.centered,\n 'v-snack--has-background': this.hasBackground,\n 'v-snack--left': this.left,\n 'v-snack--multi-line': this.multiLine && !this.vertical,\n 'v-snack--right': this.right,\n 'v-snack--text': this.text,\n 'v-snack--top': this.top,\n 'v-snack--vertical': this.vertical,\n }\n },\n // Text and outlined styles both\n // use transparent backgrounds\n hasBackground (): boolean {\n return (\n !this.text &&\n !this.outlined\n )\n },\n // Snackbar is dark by default\n // override themeable logic.\n isDark (): boolean {\n return this.hasBackground\n ? !this.light\n : Themeable.options.computed.isDark.call(this)\n },\n styles (): object {\n // Styles are not needed when\n // using the absolute prop.\n if (this.absolute) return {}\n\n const {\n bar,\n bottom,\n footer,\n insetFooter,\n left,\n right,\n top,\n } = this.$vuetify.application\n\n // Should always move for y-axis\n // applicationable components.\n return {\n paddingBottom: convertToUnit(bottom + footer + insetFooter),\n paddingLeft: !this.app ? undefined : convertToUnit(left),\n paddingRight: !this.app ? undefined : convertToUnit(right),\n paddingTop: convertToUnit(bar + top),\n }\n },\n },\n\n watch: {\n isActive: 'setTimeout',\n timeout: 'setTimeout',\n },\n\n mounted () {\n if (this.isActive) this.setTimeout()\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('auto-height')) {\n removed('auto-height', this)\n }\n\n /* istanbul ignore next */\n // eslint-disable-next-line eqeqeq\n if (this.timeout == 0) {\n deprecate('timeout=\"0\"', '-1', this)\n }\n },\n\n methods: {\n genActions () {\n return this.$createElement('div', {\n staticClass: 'v-snack__action ',\n }, [\n getSlot(this, 'action', {\n attrs: { class: 'v-snack__btn' },\n }),\n ])\n },\n genContent () {\n return this.$createElement('div', {\n staticClass: 'v-snack__content',\n class: {\n [this.contentClass]: true,\n },\n attrs: {\n role: 'status',\n 'aria-live': 'polite',\n },\n }, [getSlot(this)])\n },\n genWrapper () {\n const setColor = this.hasBackground\n ? this.setBackgroundColor\n : this.setTextColor\n\n const data = setColor(this.color, {\n staticClass: 'v-snack__wrapper',\n class: VSheet.options.computed.classes.call(this),\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n })\n\n return this.$createElement('div', data, [\n this.genContent(),\n this.genActions(),\n ])\n },\n genTransition () {\n return this.$createElement('transition', {\n props: { name: this.transition },\n }, [this.genWrapper()])\n },\n setTimeout () {\n window.clearTimeout(this.activeTimeout)\n\n const timeout = Number(this.timeout)\n\n if (\n !this.isActive ||\n // TODO: remove 0 in v3\n [0, -1].includes(timeout)\n ) {\n return\n }\n\n this.activeTimeout = window.setTimeout(() => {\n this.isActive = false\n }, timeout)\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-snack',\n class: this.classes,\n style: this.styles,\n }, [\n this.transition !== false\n ? this.genTransition()\n : this.genWrapper(),\n ])\n },\n})\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAALOElEQVR4Xu1bC1RUdRr/7r1z581LCRAwR0AFRVtEEzUs27INzawkqHC308m03LTUVWnbNg+VStZZH5mPPJ6tVtdI84Fi22mzNQ1RfKUgPgifKCAiDMOdx73/Pd9lBu88YCzuDHTODMdzODPc//3f3/09vu+7IwWBV4cIUAF8OkYgAJAXhgQACgDUORMJMCjAoACDOodAgEGdwy/gQQEGBRjUOQS6OYNQ4lTqS6nMwH4DlWwPlsb9WuutQtnZMkvp2lIeAIj9n0+BaG/xrvAgPCeduThTHzEoZqCNNt9jBb4PARJGQNDaN2qiBeomQ7MXaIE+Xn+qpqxgQYERAAR/g+VPgES2ZH6YGRqVGP2sWWHJaraaEnjChwAQlQACRQg49kNooJE5ZoamG9SM5rxaUG2uPX1tY8HsggZ/sspfANET503U9RweeT+lp95qEVqG8QJPEVE9rS/p75K3296nKZroaO0hwSTkNRy68f2O/B3Ndkb5VHr+AIiesm5KH7aXZoaFtky18tZgBOOXgOMAkAIKWIZtVNqUn7TUWFcWTP3sgq9B8jVATPYH2dHqxKDlZuDG8wLPurKFEAJtwmr90COrpIAyFG1VEdWuhrIbswoXFF72JUi+BIh54O2Mu+KG9V5lAuMkgRDxXE5SugNpuR/TiiBFUURLtDsuHamavvftvbUAgIkn+8tXANGP5j7aMzItejHHcC8IyBIPXuMK1p2wR0oxilCgIuoNNw/Wzi9aVHTDF0zyBUCUwWBQ3Zc/5kVeKyzmiaCT3tZf4z1S0bUBbcecoehmxkjnHnzjx3VVVVVmucsAXwDEZLyX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apcWL/nhY+AAi0LHLNs9FmV6xx8AiU9bsUczjDUMSvpT8kpVqCrZSVIu1bFHcIAQrpbbd3LdsTnVJdWVvjRmf0rMcS6xeNRoND0Hv3ZPZmRK1N8ZFRMsfuihvvGUdjxnq6veXz3/6PrDRWCCm/bHRD4x5q4AyPEYRxsUHdRr6GvD3wwbEJbjvUG1D+kB4GbZjY8O55d8yN3iauzS8ssXOv0hMWmqieMQXYQuZmRe+gZthDalrYD05EmYXYQQ0/Xmkh/mfv+CxWi5ZpcWppanIkom57m9jD8BkqZaSFJ28khDhuF9NkgZ7+pH0li3NlkqL+yunFO+qfxHe2rhE1ifS0t6V2VH3cuCrU9M1erwwbPuyY4c1uuvNEvrPRmzYBNMdUdrlhz/6Og/uQYOv0Hm89Tqipj3dE6Mfp0qXBU5Yt6ov4UkhGa7zY0EEJouNe46/MHBBcaLxquSgtAv0upKBjkqeIx+fXhiuGHwn1Pe1UXrxlF067QIfYerMZWc+OTY7JpDNTjIx6evKC2/guPYqL8lJo1+rLKD734kbnD/p/sv0fTQDEU/Mjdw5yq3V84991VFid13cM7jN9/piphv7yagH2HrEZr8fPKDsQ8Z3qUoUFYfuJp3bP2RncCJTyj87jvdCSDcC4KkBTWEpc64NwNoYE+tOLGT4zgEB79UJf1ajN/Z7u+Y93SBuAc0bbVOp8P/7UM1Nzdjh46y8lu90x7y3QEghxdiO+J4joas6VLmdHWKebthfk8rbxvyu7Z/KyfsLhLrtngFAPJyawIABQDqnHoDDAowKMCgziEQYFDn8At4kBf8/g9AYd2FEbNbaAAAAABJRU5ErkJggg==\"","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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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","'use strict';\n(function (factory, window) {\n /*globals define, module, require*/\n\n // define an AMD module that relies on 'leaflet'\n if (typeof define === 'function' && define.amd) {\n define(['leaflet'], factory);\n\n\n // define a Common JS module that relies on 'leaflet'\n } else if (typeof exports === 'object') {\n module.exports = factory(require('leaflet'));\n }\n\n // attach your plugin to the global 'L' variable\n if(typeof window !== 'undefined' && window.L){\n factory(window.L);\n }\n\n}(function (L) {\n // 🍂miniclass CancelableEvent (Event objects)\n // 🍂method cancel()\n // Cancel any subsequent action.\n\n // 🍂miniclass VertexEvent (Event objects)\n // 🍂property vertex: VertexMarker\n // The vertex that fires the event.\n\n // 🍂miniclass ShapeEvent (Event objects)\n // 🍂property shape: Array\n // The shape (LatLngs array) subject of the action.\n\n // 🍂miniclass CancelableVertexEvent (Event objects)\n // 🍂inherits VertexEvent\n // 🍂inherits CancelableEvent\n\n // 🍂miniclass CancelableShapeEvent (Event objects)\n // 🍂inherits ShapeEvent\n // 🍂inherits CancelableEvent\n\n // 🍂miniclass LayerEvent (Event objects)\n // 🍂property layer: object\n // The Layer (Marker, Polyline…) subject of the action.\n\n // 🍂namespace Editable; 🍂class Editable; 🍂aka L.Editable\n // Main edition handler. By default, it is attached to the map\n // as `map.editTools` property.\n // Leaflet.Editable is made to be fully extendable. You have three ways to customize\n // the behaviour: using options, listening to events, or extending.\n L.Editable = L.Evented.extend({\n\n statics: {\n FORWARD: 1,\n BACKWARD: -1\n },\n\n options: {\n\n // You can pass them when creating a map using the `editOptions` key.\n // 🍂option zIndex: int = 1000\n // The default zIndex of the editing tools.\n zIndex: 1000,\n\n // 🍂option polygonClass: class = L.Polygon\n // Class to be used when creating a new Polygon.\n polygonClass: L.Polygon,\n\n // 🍂option polylineClass: class = L.Polyline\n // Class to be used when creating a new Polyline.\n polylineClass: L.Polyline,\n\n // 🍂option markerClass: class = L.Marker\n // Class to be used when creating a new Marker.\n markerClass: L.Marker,\n\n // 🍂option rectangleClass: class = L.Rectangle\n // Class to be used when creating a new Rectangle.\n rectangleClass: L.Rectangle,\n\n // 🍂option circleClass: class = L.Circle\n // Class to be used when creating a new Circle.\n circleClass: L.Circle,\n\n // 🍂option drawingCSSClass: string = 'leaflet-editable-drawing'\n // CSS class to be added to the map container while drawing.\n drawingCSSClass: 'leaflet-editable-drawing',\n\n // 🍂option drawingCursor: const = 'crosshair'\n // Cursor mode set to the map while drawing.\n drawingCursor: 'crosshair',\n\n // 🍂option editLayer: Layer = new L.LayerGroup()\n // Layer used to store edit tools (vertex, line guide…).\n editLayer: undefined,\n\n // 🍂option featuresLayer: Layer = new L.LayerGroup()\n // Default layer used to store drawn features (Marker, Polyline…).\n featuresLayer: undefined,\n\n // 🍂option polylineEditorClass: class = PolylineEditor\n // Class to be used as Polyline editor.\n polylineEditorClass: undefined,\n\n // 🍂option polygonEditorClass: class = PolygonEditor\n // Class to be used as Polygon editor.\n polygonEditorClass: undefined,\n\n // 🍂option markerEditorClass: class = MarkerEditor\n // Class to be used as Marker editor.\n markerEditorClass: undefined,\n\n // 🍂option rectangleEditorClass: class = RectangleEditor\n // Class to be used as Rectangle editor.\n rectangleEditorClass: undefined,\n\n // 🍂option circleEditorClass: class = CircleEditor\n // Class to be used as Circle editor.\n circleEditorClass: undefined,\n\n // 🍂option lineGuideOptions: hash = {}\n // Options to be passed to the line guides.\n lineGuideOptions: {},\n\n // 🍂option skipMiddleMarkers: boolean = false\n // Set this to true if you don't want middle markers.\n skipMiddleMarkers: false\n\n },\n\n initialize: function (map, options) {\n L.setOptions(this, options);\n this._lastZIndex = this.options.zIndex;\n this.map = map;\n this.editLayer = this.createEditLayer();\n this.featuresLayer = this.createFeaturesLayer();\n this.forwardLineGuide = this.createLineGuide();\n this.backwardLineGuide = this.createLineGuide();\n },\n\n fireAndForward: function (type, e) {\n e = e || {};\n e.editTools = this;\n this.fire(type, e);\n this.map.fire(type, e);\n },\n\n createLineGuide: function () {\n var options = L.extend({dashArray: '5,10', weight: 1, interactive: false}, this.options.lineGuideOptions);\n return L.polyline([], options);\n },\n\n createVertexIcon: function (options) {\n return L.Browser.mobile && L.Browser.touch ? new L.Editable.TouchVertexIcon(options) : new L.Editable.VertexIcon(options);\n },\n\n createEditLayer: function () {\n return this.options.editLayer || new L.LayerGroup().addTo(this.map);\n },\n\n createFeaturesLayer: function () {\n return this.options.featuresLayer || new L.LayerGroup().addTo(this.map);\n },\n\n moveForwardLineGuide: function (latlng) {\n if (this.forwardLineGuide._latlngs.length) {\n this.forwardLineGuide._latlngs[1] = latlng;\n this.forwardLineGuide._bounds.extend(latlng);\n this.forwardLineGuide.redraw();\n }\n },\n\n moveBackwardLineGuide: function (latlng) {\n if (this.backwardLineGuide._latlngs.length) {\n this.backwardLineGuide._latlngs[1] = latlng;\n this.backwardLineGuide._bounds.extend(latlng);\n this.backwardLineGuide.redraw();\n }\n },\n\n anchorForwardLineGuide: function (latlng) {\n this.forwardLineGuide._latlngs[0] = latlng;\n this.forwardLineGuide._bounds.extend(latlng);\n this.forwardLineGuide.redraw();\n },\n\n anchorBackwardLineGuide: function (latlng) {\n this.backwardLineGuide._latlngs[0] = latlng;\n this.backwardLineGuide._bounds.extend(latlng);\n this.backwardLineGuide.redraw();\n },\n\n attachForwardLineGuide: function () {\n this.editLayer.addLayer(this.forwardLineGuide);\n },\n\n attachBackwardLineGuide: function () {\n this.editLayer.addLayer(this.backwardLineGuide);\n },\n\n detachForwardLineGuide: function () {\n this.forwardLineGuide.setLatLngs([]);\n this.editLayer.removeLayer(this.forwardLineGuide);\n },\n\n detachBackwardLineGuide: function () {\n this.backwardLineGuide.setLatLngs([]);\n this.editLayer.removeLayer(this.backwardLineGuide);\n },\n\n blockEvents: function () {\n // Hack: force map not to listen to other layers events while drawing.\n if (!this._oldTargets) {\n this._oldTargets = this.map._targets;\n this.map._targets = {};\n }\n },\n\n unblockEvents: function () {\n if (this._oldTargets) {\n // Reset, but keep targets created while drawing.\n this.map._targets = L.extend(this.map._targets, this._oldTargets);\n delete this._oldTargets;\n }\n },\n\n registerForDrawing: function (editor) {\n if (this._drawingEditor) this.unregisterForDrawing(this._drawingEditor);\n this.blockEvents();\n editor.reset(); // Make sure editor tools still receive events.\n this._drawingEditor = editor;\n this.map.on('mousemove touchmove', editor.onDrawingMouseMove, editor);\n this.map.on('mousedown', this.onMousedown, this);\n this.map.on('mouseup', this.onMouseup, this);\n L.DomUtil.addClass(this.map._container, this.options.drawingCSSClass);\n this.defaultMapCursor = this.map._container.style.cursor;\n this.map._container.style.cursor = this.options.drawingCursor;\n },\n\n unregisterForDrawing: function (editor) {\n this.unblockEvents();\n L.DomUtil.removeClass(this.map._container, this.options.drawingCSSClass);\n this.map._container.style.cursor = this.defaultMapCursor;\n editor = editor || this._drawingEditor;\n if (!editor) return;\n this.map.off('mousemove touchmove', editor.onDrawingMouseMove, editor);\n this.map.off('mousedown', this.onMousedown, this);\n this.map.off('mouseup', this.onMouseup, this);\n if (editor !== this._drawingEditor) return;\n delete this._drawingEditor;\n if (editor._drawing) editor.cancelDrawing();\n },\n\n onMousedown: function (e) {\n if (e.originalEvent.which != 1) return;\n this._mouseDown = e;\n this._drawingEditor.onDrawingMouseDown(e);\n },\n\n onMouseup: function (e) {\n if (this._mouseDown) {\n var editor = this._drawingEditor,\n mouseDown = this._mouseDown;\n this._mouseDown = null;\n editor.onDrawingMouseUp(e);\n if (this._drawingEditor !== editor) return; // onDrawingMouseUp may call unregisterFromDrawing.\n var origin = L.point(mouseDown.originalEvent.clientX, mouseDown.originalEvent.clientY);\n var distance = L.point(e.originalEvent.clientX, e.originalEvent.clientY).distanceTo(origin);\n if (Math.abs(distance) < 9 * (window.devicePixelRatio || 1)) this._drawingEditor.onDrawingClick(e);\n }\n },\n\n // 🍂section Public methods\n // You will generally access them by the `map.editTools`\n // instance:\n //\n // `map.editTools.startPolyline();`\n\n // 🍂method drawing(): boolean\n // Return true if any drawing action is ongoing.\n drawing: function () {\n return this._drawingEditor && this._drawingEditor.drawing();\n },\n\n // 🍂method stopDrawing()\n // When you need to stop any ongoing drawing, without needing to know which editor is active.\n stopDrawing: function () {\n this.unregisterForDrawing();\n },\n\n // 🍂method commitDrawing()\n // When you need to commit any ongoing drawing, without needing to know which editor is active.\n commitDrawing: function (e) {\n if (!this._drawingEditor) return;\n this._drawingEditor.commitDrawing(e);\n },\n\n connectCreatedToMap: function (layer) {\n return this.featuresLayer.addLayer(layer);\n },\n\n // 🍂method startPolyline(latlng: L.LatLng, options: hash): L.Polyline\n // Start drawing a Polyline. If `latlng` is given, a first point will be added. In any case, continuing on user click.\n // If `options` is given, it will be passed to the Polyline class constructor.\n startPolyline: function (latlng, options) {\n var line = this.createPolyline([], options);\n line.enableEdit(this.map).newShape(latlng);\n return line;\n },\n\n // 🍂method startPolygon(latlng: L.LatLng, options: hash): L.Polygon\n // Start drawing a Polygon. If `latlng` is given, a first point will be added. In any case, continuing on user click.\n // If `options` is given, it will be passed to the Polygon class constructor.\n startPolygon: function (latlng, options) {\n var polygon = this.createPolygon([], options);\n polygon.enableEdit(this.map).newShape(latlng);\n return polygon;\n },\n\n // 🍂method startMarker(latlng: L.LatLng, options: hash): L.Marker\n // Start adding a Marker. If `latlng` is given, the Marker will be shown first at this point.\n // In any case, it will follow the user mouse, and will have a final `latlng` on next click (or touch).\n // If `options` is given, it will be passed to the Marker class constructor.\n startMarker: function (latlng, options) {\n latlng = latlng || this.map.getCenter().clone();\n var marker = this.createMarker(latlng, options);\n marker.enableEdit(this.map).startDrawing();\n return marker;\n },\n\n // 🍂method startRectangle(latlng: L.LatLng, options: hash): L.Rectangle\n // Start drawing a Rectangle. If `latlng` is given, the Rectangle anchor will be added. In any case, continuing on user drag.\n // If `options` is given, it will be passed to the Rectangle class constructor.\n startRectangle: function(latlng, options) {\n var corner = latlng || L.latLng([0, 0]);\n var bounds = new L.LatLngBounds(corner, corner);\n var rectangle = this.createRectangle(bounds, options);\n rectangle.enableEdit(this.map).startDrawing();\n return rectangle;\n },\n\n // 🍂method startCircle(latlng: L.LatLng, options: hash): L.Circle\n // Start drawing a Circle. If `latlng` is given, the Circle anchor will be added. In any case, continuing on user drag.\n // If `options` is given, it will be passed to the Circle class constructor.\n startCircle: function (latlng, options) {\n latlng = latlng || this.map.getCenter().clone();\n var circle = this.createCircle(latlng, options);\n circle.enableEdit(this.map).startDrawing();\n return circle;\n },\n\n startHole: function (editor, latlng) {\n editor.newHole(latlng);\n },\n\n createLayer: function (klass, latlngs, options) {\n options = L.Util.extend({editOptions: {editTools: this}}, options);\n var layer = new klass(latlngs, options);\n // 🍂namespace Editable\n // 🍂event editable:created: LayerEvent\n // Fired when a new feature (Marker, Polyline…) is created.\n this.fireAndForward('editable:created', {layer: layer});\n return layer;\n },\n\n createPolyline: function (latlngs, options) {\n return this.createLayer(options && options.polylineClass || this.options.polylineClass, latlngs, options);\n },\n\n createPolygon: function (latlngs, options) {\n return this.createLayer(options && options.polygonClass || this.options.polygonClass, latlngs, options);\n },\n\n createMarker: function (latlng, options) {\n return this.createLayer(options && options.markerClass || this.options.markerClass, latlng, options);\n },\n\n createRectangle: function (bounds, options) {\n return this.createLayer(options && options.rectangleClass || this.options.rectangleClass, bounds, options);\n },\n\n createCircle: function (latlng, options) {\n return this.createLayer(options && options.circleClass || this.options.circleClass, latlng, options);\n }\n\n });\n\n L.extend(L.Editable, {\n\n makeCancellable: function (e) {\n e.cancel = function () {\n e._cancelled = true;\n };\n }\n\n });\n\n // 🍂namespace Map; 🍂class Map\n // Leaflet.Editable add options and events to the `L.Map` object.\n // See `Editable` events for the list of events fired on the Map.\n // 🍂example\n //\n // ```js\n // var map = L.map('map', {\n // editable: true,\n // editOptions: {\n // …\n // }\n // });\n // ```\n // 🍂section Editable Map Options\n L.Map.mergeOptions({\n\n // 🍂namespace Map\n // 🍂section Map Options\n // 🍂option editToolsClass: class = L.Editable\n // Class to be used as vertex, for path editing.\n editToolsClass: L.Editable,\n\n // 🍂option editable: boolean = false\n // Whether to create a L.Editable instance at map init.\n editable: false,\n\n // 🍂option editOptions: hash = {}\n // Options to pass to L.Editable when instantiating.\n editOptions: {}\n\n });\n\n L.Map.addInitHook(function () {\n\n this.whenReady(function () {\n if (this.options.editable) {\n this.editTools = new this.options.editToolsClass(this, this.options.editOptions);\n }\n });\n\n });\n\n L.Editable.VertexIcon = L.DivIcon.extend({\n\n options: {\n iconSize: new L.Point(8, 8)\n }\n\n });\n\n L.Editable.TouchVertexIcon = L.Editable.VertexIcon.extend({\n\n options: {\n iconSize: new L.Point(20, 20)\n }\n\n });\n\n\n // 🍂namespace Editable; 🍂class VertexMarker; Handler for dragging path vertices.\n L.Editable.VertexMarker = L.Marker.extend({\n\n options: {\n draggable: true,\n className: 'leaflet-div-icon leaflet-vertex-icon'\n },\n\n\n // 🍂section Public methods\n // The marker used to handle path vertex. You will usually interact with a `VertexMarker`\n // instance when listening for events like `editable:vertex:ctrlclick`.\n\n initialize: function (latlng, latlngs, editor, options) {\n // We don't use this._latlng, because on drag Leaflet replace it while\n // we want to keep reference.\n this.latlng = latlng;\n this.latlngs = latlngs;\n this.editor = editor;\n L.Marker.prototype.initialize.call(this, latlng, options);\n this.options.icon = this.editor.tools.createVertexIcon({className: this.options.className});\n this.latlng.__vertex = this;\n this.editor.editLayer.addLayer(this);\n this.setZIndexOffset(editor.tools._lastZIndex + 1);\n },\n\n onAdd: function (map) {\n L.Marker.prototype.onAdd.call(this, map);\n this.on('drag', this.onDrag);\n this.on('dragstart', this.onDragStart);\n this.on('dragend', this.onDragEnd);\n this.on('mouseup', this.onMouseup);\n this.on('click', this.onClick);\n this.on('contextmenu', this.onContextMenu);\n this.on('mousedown touchstart', this.onMouseDown);\n this.on('mouseover', this.onMouseOver);\n this.on('mouseout', this.onMouseOut);\n this.addMiddleMarkers();\n },\n\n onRemove: function (map) {\n if (this.middleMarker) this.middleMarker.delete();\n delete this.latlng.__vertex;\n this.off('drag', this.onDrag);\n this.off('dragstart', this.onDragStart);\n this.off('dragend', this.onDragEnd);\n this.off('mouseup', this.onMouseup);\n this.off('click', this.onClick);\n this.off('contextmenu', this.onContextMenu);\n this.off('mousedown touchstart', this.onMouseDown);\n this.off('mouseover', this.onMouseOver);\n this.off('mouseout', this.onMouseOut);\n L.Marker.prototype.onRemove.call(this, map);\n },\n\n onDrag: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDrag(e);\n var iconPos = L.DomUtil.getPosition(this._icon),\n latlng = this._map.layerPointToLatLng(iconPos);\n this.latlng.update(latlng);\n this._latlng = this.latlng; // Push back to Leaflet our reference.\n this.editor.refresh();\n if (this.middleMarker) this.middleMarker.updateLatLng();\n var next = this.getNext();\n if (next && next.middleMarker) next.middleMarker.updateLatLng();\n },\n\n onDragStart: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDragStart(e);\n },\n\n onDragEnd: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerDragEnd(e);\n },\n\n onClick: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerClick(e);\n },\n\n onMouseup: function (e) {\n L.DomEvent.stop(e);\n e.vertex = this;\n this.editor.map.fire('mouseup', e);\n },\n\n onContextMenu: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerContextMenu(e);\n },\n\n onMouseDown: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerMouseDown(e);\n },\n\n onMouseOver: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerMouseOver(e);\n },\n\n onMouseOut: function (e) {\n e.vertex = this;\n this.editor.onVertexMarkerMouseOut(e);\n },\n\n // 🍂method delete()\n // Delete a vertex and the related LatLng.\n delete: function () {\n var next = this.getNext(); // Compute before changing latlng\n this.latlngs.splice(this.getIndex(), 1);\n this.editor.editLayer.removeLayer(this);\n this.editor.onVertexDeleted({latlng: this.latlng, vertex: this});\n if (!this.latlngs.length) this.editor.deleteShape(this.latlngs);\n if (next) next.resetMiddleMarker();\n this.editor.refresh();\n },\n\n // 🍂method getIndex(): int\n // Get the index of the current vertex among others of the same LatLngs group.\n getIndex: function () {\n return this.latlngs.indexOf(this.latlng);\n },\n\n // 🍂method getLastIndex(): int\n // Get last vertex index of the LatLngs group of the current vertex.\n getLastIndex: function () {\n return this.latlngs.length - 1;\n },\n\n // 🍂method getPrevious(): VertexMarker\n // Get the previous VertexMarker in the same LatLngs group.\n getPrevious: function () {\n if (this.latlngs.length < 2) return;\n var index = this.getIndex(),\n previousIndex = index - 1;\n if (index === 0 && this.editor.CLOSED) previousIndex = this.getLastIndex();\n var previous = this.latlngs[previousIndex];\n if (previous) return previous.__vertex;\n },\n\n // 🍂method getNext(): VertexMarker\n // Get the next VertexMarker in the same LatLngs group.\n getNext: function () {\n if (this.latlngs.length < 2) return;\n var index = this.getIndex(),\n nextIndex = index + 1;\n if (index === this.getLastIndex() && this.editor.CLOSED) nextIndex = 0;\n var next = this.latlngs[nextIndex];\n if (next) return next.__vertex;\n },\n\n addMiddleMarker: function (previous) {\n if (!this.editor.hasMiddleMarkers()) return;\n previous = previous || this.getPrevious();\n if (previous && !this.middleMarker) this.middleMarker = this.editor.addMiddleMarker(previous, this, this.latlngs, this.editor);\n },\n\n addMiddleMarkers: function () {\n if (!this.editor.hasMiddleMarkers()) return;\n var previous = this.getPrevious();\n if (previous) this.addMiddleMarker(previous);\n var next = this.getNext();\n if (next) next.resetMiddleMarker();\n },\n\n resetMiddleMarker: function () {\n if (this.middleMarker) this.middleMarker.delete();\n this.addMiddleMarker();\n },\n\n // 🍂method split()\n // Split the vertex LatLngs group at its index, if possible.\n split: function () {\n if (!this.editor.splitShape) return; // Only for PolylineEditor\n this.editor.splitShape(this.latlngs, this.getIndex());\n },\n\n // 🍂method continue()\n // Continue the vertex LatLngs from this vertex. Only active for first and last vertices of a Polyline.\n continue: function () {\n if (!this.editor.continueBackward) return; // Only for PolylineEditor\n var index = this.getIndex();\n if (index === 0) this.editor.continueBackward(this.latlngs);\n else if (index === this.getLastIndex()) this.editor.continueForward(this.latlngs);\n }\n\n });\n\n L.Editable.mergeOptions({\n\n // 🍂namespace Editable\n // 🍂option vertexMarkerClass: class = VertexMarker\n // Class to be used as vertex, for path editing.\n vertexMarkerClass: L.Editable.VertexMarker\n\n });\n\n L.Editable.MiddleMarker = L.Marker.extend({\n\n options: {\n opacity: 0.5,\n className: 'leaflet-div-icon leaflet-middle-icon',\n draggable: true\n },\n\n initialize: function (left, right, latlngs, editor, options) {\n this.left = left;\n this.right = right;\n this.editor = editor;\n this.latlngs = latlngs;\n L.Marker.prototype.initialize.call(this, this.computeLatLng(), options);\n this._opacity = this.options.opacity;\n this.options.icon = this.editor.tools.createVertexIcon({className: this.options.className});\n this.editor.editLayer.addLayer(this);\n this.setVisibility();\n },\n\n setVisibility: function () {\n var leftPoint = this._map.latLngToContainerPoint(this.left.latlng),\n rightPoint = this._map.latLngToContainerPoint(this.right.latlng),\n size = L.point(this.options.icon.options.iconSize);\n if (leftPoint.distanceTo(rightPoint) < size.x * 3) this.hide();\n else this.show();\n },\n\n show: function () {\n this.setOpacity(this._opacity);\n },\n\n hide: function () {\n this.setOpacity(0);\n },\n\n updateLatLng: function () {\n this.setLatLng(this.computeLatLng());\n this.setVisibility();\n },\n\n computeLatLng: function () {\n var leftPoint = this.editor.map.latLngToContainerPoint(this.left.latlng),\n rightPoint = this.editor.map.latLngToContainerPoint(this.right.latlng),\n y = (leftPoint.y + rightPoint.y) / 2,\n x = (leftPoint.x + rightPoint.x) / 2;\n return this.editor.map.containerPointToLatLng([x, y]);\n },\n\n onAdd: function (map) {\n L.Marker.prototype.onAdd.call(this, map);\n L.DomEvent.on(this._icon, 'mousedown touchstart', this.onMouseDown, this);\n map.on('zoomend', this.setVisibility, this);\n },\n\n onRemove: function (map) {\n delete this.right.middleMarker;\n L.DomEvent.off(this._icon, 'mousedown touchstart', this.onMouseDown, this);\n map.off('zoomend', this.setVisibility, this);\n L.Marker.prototype.onRemove.call(this, map);\n },\n\n onMouseDown: function (e) {\n var iconPos = L.DomUtil.getPosition(this._icon),\n latlng = this.editor.map.layerPointToLatLng(iconPos);\n e = {\n originalEvent: e,\n latlng: latlng\n };\n if (this.options.opacity === 0) return;\n L.Editable.makeCancellable(e);\n this.editor.onMiddleMarkerMouseDown(e);\n if (e._cancelled) return;\n this.latlngs.splice(this.index(), 0, e.latlng);\n this.editor.refresh();\n var icon = this._icon;\n var marker = this.editor.addVertexMarker(e.latlng, this.latlngs);\n this.editor.onNewVertex(marker);\n /* Hack to workaround browser not firing touchend when element is no more on DOM */\n var parent = marker._icon.parentNode;\n parent.removeChild(marker._icon);\n marker._icon = icon;\n parent.appendChild(marker._icon);\n marker._initIcon();\n marker._initInteraction();\n marker.setOpacity(1);\n /* End hack */\n // Transfer ongoing dragging to real marker\n L.Draggable._dragging = false;\n marker.dragging._draggable._onDown(e.originalEvent);\n this.delete();\n },\n\n delete: function () {\n this.editor.editLayer.removeLayer(this);\n },\n\n index: function () {\n return this.latlngs.indexOf(this.right.latlng);\n }\n\n });\n\n L.Editable.mergeOptions({\n\n // 🍂namespace Editable\n // 🍂option middleMarkerClass: class = VertexMarker\n // Class to be used as middle vertex, pulled by the user to create a new point in the middle of a path.\n middleMarkerClass: L.Editable.MiddleMarker\n\n });\n\n // 🍂namespace Editable; 🍂class BaseEditor; 🍂aka L.Editable.BaseEditor\n // When editing a feature (Marker, Polyline…), an editor is attached to it. This\n // editor basically knows how to handle the edition.\n L.Editable.BaseEditor = L.Handler.extend({\n\n initialize: function (map, feature, options) {\n L.setOptions(this, options);\n this.map = map;\n this.feature = feature;\n this.feature.editor = this;\n this.editLayer = new L.LayerGroup();\n this.tools = this.options.editTools || map.editTools;\n },\n\n // 🍂method enable(): this\n // Set up the drawing tools for the feature to be editable.\n addHooks: function () {\n if (this.isConnected()) this.onFeatureAdd();\n else this.feature.once('add', this.onFeatureAdd, this);\n this.onEnable();\n this.feature.on(this._getEvents(), this);\n },\n\n // 🍂method disable(): this\n // Remove the drawing tools for the feature.\n removeHooks: function () {\n this.feature.off(this._getEvents(), this);\n if (this.feature.dragging) this.feature.dragging.disable();\n this.editLayer.clearLayers();\n this.tools.editLayer.removeLayer(this.editLayer);\n this.onDisable();\n if (this._drawing) this.cancelDrawing();\n },\n\n // 🍂method drawing(): boolean\n // Return true if any drawing action is ongoing with this editor.\n drawing: function () {\n return !!this._drawing;\n },\n\n reset: function () {},\n\n onFeatureAdd: function () {\n this.tools.editLayer.addLayer(this.editLayer);\n if (this.feature.dragging) this.feature.dragging.enable();\n },\n\n hasMiddleMarkers: function () {\n return !this.options.skipMiddleMarkers && !this.tools.options.skipMiddleMarkers;\n },\n\n fireAndForward: function (type, e) {\n e = e || {};\n e.layer = this.feature;\n this.feature.fire(type, e);\n this.tools.fireAndForward(type, e);\n },\n\n onEnable: function () {\n // 🍂namespace Editable\n // 🍂event editable:enable: Event\n // Fired when an existing feature is ready to be edited.\n this.fireAndForward('editable:enable');\n },\n\n onDisable: function () {\n // 🍂namespace Editable\n // 🍂event editable:disable: Event\n // Fired when an existing feature is not ready anymore to be edited.\n this.fireAndForward('editable:disable');\n },\n\n onEditing: function () {\n // 🍂namespace Editable\n // 🍂event editable:editing: Event\n // Fired as soon as any change is made to the feature geometry.\n this.fireAndForward('editable:editing');\n },\n\n onStartDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:start: Event\n // Fired when a feature is to be drawn.\n this.fireAndForward('editable:drawing:start');\n },\n\n onEndDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:end: Event\n // Fired when a feature is not drawn anymore.\n this.fireAndForward('editable:drawing:end');\n },\n\n onCancelDrawing: function () {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:cancel: Event\n // Fired when user cancel drawing while a feature is being drawn.\n this.fireAndForward('editable:drawing:cancel');\n },\n\n onCommitDrawing: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:commit: Event\n // Fired when user finish drawing a feature.\n this.fireAndForward('editable:drawing:commit', e);\n },\n\n onDrawingMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:mousedown: Event\n // Fired when user `mousedown` while drawing.\n this.fireAndForward('editable:drawing:mousedown', e);\n },\n\n onDrawingMouseUp: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:mouseup: Event\n // Fired when user `mouseup` while drawing.\n this.fireAndForward('editable:drawing:mouseup', e);\n },\n\n startDrawing: function () {\n if (!this._drawing) this._drawing = L.Editable.FORWARD;\n this.tools.registerForDrawing(this);\n this.onStartDrawing();\n },\n\n commitDrawing: function (e) {\n this.onCommitDrawing(e);\n this.endDrawing();\n },\n\n cancelDrawing: function () {\n // If called during a vertex drag, the vertex will be removed before\n // the mouseup fires on it. This is a workaround. Maybe better fix is\n // To have L.Draggable reset it's status on disable (Leaflet side).\n L.Draggable._dragging = false;\n this.onCancelDrawing();\n this.endDrawing();\n },\n\n endDrawing: function () {\n this._drawing = false;\n this.tools.unregisterForDrawing(this);\n this.onEndDrawing();\n },\n\n onDrawingClick: function (e) {\n if (!this.drawing()) return;\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:click: CancelableEvent\n // Fired when user `click` while drawing, before any internal action is being processed.\n this.fireAndForward('editable:drawing:click', e);\n if (e._cancelled) return;\n if (!this.isConnected()) this.connect(e);\n this.processDrawingClick(e);\n },\n\n isConnected: function () {\n return this.map.hasLayer(this.feature);\n },\n\n connect: function () {\n this.tools.connectCreatedToMap(this.feature);\n this.tools.editLayer.addLayer(this.editLayer);\n },\n\n onMove: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:move: Event\n // Fired when `move` mouse while drawing, while dragging a marker, and while dragging a vertex.\n this.fireAndForward('editable:drawing:move', e);\n },\n\n onDrawingMouseMove: function (e) {\n this.onMove(e);\n },\n\n _getEvents: function () {\n return {\n dragstart: this.onDragStart,\n drag: this.onDrag,\n dragend: this.onDragEnd,\n remove: this.disable\n };\n },\n\n onDragStart: function (e) {\n this.onEditing();\n // 🍂namespace Editable\n // 🍂event editable:dragstart: Event\n // Fired before a path feature is dragged.\n this.fireAndForward('editable:dragstart', e);\n },\n\n onDrag: function (e) {\n this.onMove(e);\n // 🍂namespace Editable\n // 🍂event editable:drag: Event\n // Fired when a path feature is being dragged.\n this.fireAndForward('editable:drag', e);\n },\n\n onDragEnd: function (e) {\n // 🍂namespace Editable\n // 🍂event editable:dragend: Event\n // Fired after a path feature has been dragged.\n this.fireAndForward('editable:dragend', e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class MarkerEditor; 🍂aka L.Editable.MarkerEditor\n // 🍂inherits BaseEditor\n // Editor for Marker.\n L.Editable.MarkerEditor = L.Editable.BaseEditor.extend({\n\n onDrawingMouseMove: function (e) {\n L.Editable.BaseEditor.prototype.onDrawingMouseMove.call(this, e);\n if (this._drawing) this.feature.setLatLng(e.latlng);\n },\n\n processDrawingClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Drawing events\n // 🍂event editable:drawing:clicked: Event\n // Fired when user `click` while drawing, after all internal actions.\n this.fireAndForward('editable:drawing:clicked', e);\n this.commitDrawing(e);\n },\n\n connect: function (e) {\n // On touch, the latlng has not been updated because there is\n // no mousemove.\n if (e) this.feature._latlng = e.latlng;\n L.Editable.BaseEditor.prototype.connect.call(this, e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PathEditor; 🍂aka L.Editable.PathEditor\n // 🍂inherits BaseEditor\n // Base class for all path editors.\n L.Editable.PathEditor = L.Editable.BaseEditor.extend({\n\n CLOSED: false,\n MIN_VERTEX: 2,\n\n addHooks: function () {\n L.Editable.BaseEditor.prototype.addHooks.call(this);\n if (this.feature) this.initVertexMarkers();\n return this;\n },\n\n initVertexMarkers: function (latlngs) {\n if (!this.enabled()) return;\n latlngs = latlngs || this.getLatLngs();\n if (isFlat(latlngs)) this.addVertexMarkers(latlngs);\n else for (var i = 0; i < latlngs.length; i++) this.initVertexMarkers(latlngs[i]);\n },\n\n getLatLngs: function () {\n return this.feature.getLatLngs();\n },\n\n // 🍂method reset()\n // Rebuild edit elements (Vertex, MiddleMarker, etc.).\n reset: function () {\n this.editLayer.clearLayers();\n this.initVertexMarkers();\n },\n\n addVertexMarker: function (latlng, latlngs) {\n return new this.tools.options.vertexMarkerClass(latlng, latlngs, this);\n },\n\n onNewVertex: function (vertex) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:new: VertexEvent\n // Fired when a new vertex is created.\n this.fireAndForward('editable:vertex:new', {latlng: vertex.latlng, vertex: vertex});\n },\n\n addVertexMarkers: function (latlngs) {\n for (var i = 0; i < latlngs.length; i++) {\n this.addVertexMarker(latlngs[i], latlngs);\n }\n },\n\n refreshVertexMarkers: function (latlngs) {\n latlngs = latlngs || this.getDefaultLatLngs();\n for (var i = 0; i < latlngs.length; i++) {\n latlngs[i].__vertex.update();\n }\n },\n\n addMiddleMarker: function (left, right, latlngs) {\n return new this.tools.options.middleMarkerClass(left, right, latlngs, this);\n },\n\n onVertexMarkerClick: function (e) {\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:click: CancelableVertexEvent\n // Fired when a `click` is issued on a vertex, before any internal action is being processed.\n this.fireAndForward('editable:vertex:click', e);\n if (e._cancelled) return;\n if (this.tools.drawing() && this.tools._drawingEditor !== this) return;\n var index = e.vertex.getIndex(), commit;\n if (e.originalEvent.ctrlKey) {\n this.onVertexMarkerCtrlClick(e);\n } else if (e.originalEvent.altKey) {\n this.onVertexMarkerAltClick(e);\n } else if (e.originalEvent.shiftKey) {\n this.onVertexMarkerShiftClick(e);\n } else if (e.originalEvent.metaKey) {\n this.onVertexMarkerMetaKeyClick(e);\n } else if (index === e.vertex.getLastIndex() && this._drawing === L.Editable.FORWARD) {\n if (index >= this.MIN_VERTEX - 1) commit = true;\n } else if (index === 0 && this._drawing === L.Editable.BACKWARD && this._drawnLatLngs.length >= this.MIN_VERTEX) {\n commit = true;\n } else if (index === 0 && this._drawing === L.Editable.FORWARD && this._drawnLatLngs.length >= this.MIN_VERTEX && this.CLOSED) {\n commit = true; // Allow to close on first point also for polygons\n } else {\n this.onVertexRawMarkerClick(e);\n }\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:clicked: VertexEvent\n // Fired when a `click` is issued on a vertex, after all internal actions.\n this.fireAndForward('editable:vertex:clicked', e);\n if (commit) this.commitDrawing(e);\n },\n\n onVertexRawMarkerClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:rawclick: CancelableVertexEvent\n // Fired when a `click` is issued on a vertex without any special key and without being in drawing mode.\n this.fireAndForward('editable:vertex:rawclick', e);\n if (e._cancelled) return;\n if (!this.vertexCanBeDeleted(e.vertex)) return;\n e.vertex.delete();\n },\n\n vertexCanBeDeleted: function (vertex) {\n return vertex.latlngs.length > this.MIN_VERTEX;\n },\n\n onVertexDeleted: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:deleted: VertexEvent\n // Fired after a vertex has been deleted by user.\n this.fireAndForward('editable:vertex:deleted', e);\n },\n\n onVertexMarkerCtrlClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:ctrlclick: VertexEvent\n // Fired when a `click` with `ctrlKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:ctrlclick', e);\n },\n\n onVertexMarkerShiftClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:shiftclick: VertexEvent\n // Fired when a `click` with `shiftKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:shiftclick', e);\n },\n\n onVertexMarkerMetaKeyClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:metakeyclick: VertexEvent\n // Fired when a `click` with `metaKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:metakeyclick', e);\n },\n\n onVertexMarkerAltClick: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:altclick: VertexEvent\n // Fired when a `click` with `altKey` is issued on a vertex.\n this.fireAndForward('editable:vertex:altclick', e);\n },\n\n onVertexMarkerContextMenu: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:contextmenu: VertexEvent\n // Fired when a `contextmenu` is issued on a vertex.\n this.fireAndForward('editable:vertex:contextmenu', e);\n },\n\n onVertexMarkerMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:mousedown: VertexEvent\n // Fired when user `mousedown` a vertex.\n this.fireAndForward('editable:vertex:mousedown', e);\n },\n\n onVertexMarkerMouseOver: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:mouseover: VertexEvent\n // Fired when a user's mouse enters the vertex\n this.fireAndForward('editable:vertex:mouseover', e);\n },\n\n onVertexMarkerMouseOut: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:mouseout: VertexEvent\n // Fired when a user's mouse leaves the vertex\n this.fireAndForward('editable:vertex:mouseout', e);\n },\n\n onMiddleMarkerMouseDown: function (e) {\n // 🍂namespace Editable\n // 🍂section MiddleMarker events\n // 🍂event editable:middlemarker:mousedown: VertexEvent\n // Fired when user `mousedown` a middle marker.\n this.fireAndForward('editable:middlemarker:mousedown', e);\n },\n\n onVertexMarkerDrag: function (e) {\n this.onMove(e);\n if (this.feature._bounds) this.extendBounds(e);\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:drag: VertexEvent\n // Fired when a vertex is dragged by user.\n this.fireAndForward('editable:vertex:drag', e);\n },\n\n onVertexMarkerDragStart: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:dragstart: VertexEvent\n // Fired before a vertex is dragged by user.\n this.fireAndForward('editable:vertex:dragstart', e);\n },\n\n onVertexMarkerDragEnd: function (e) {\n // 🍂namespace Editable\n // 🍂section Vertex events\n // 🍂event editable:vertex:dragend: VertexEvent\n // Fired after a vertex is dragged by user.\n this.fireAndForward('editable:vertex:dragend', e);\n },\n\n setDrawnLatLngs: function (latlngs) {\n this._drawnLatLngs = latlngs || this.getDefaultLatLngs();\n },\n\n startDrawing: function () {\n if (!this._drawnLatLngs) this.setDrawnLatLngs();\n L.Editable.BaseEditor.prototype.startDrawing.call(this);\n },\n\n startDrawingForward: function () {\n this.startDrawing();\n },\n\n endDrawing: function () {\n this.tools.detachForwardLineGuide();\n this.tools.detachBackwardLineGuide();\n if (this._drawnLatLngs && this._drawnLatLngs.length < this.MIN_VERTEX) this.deleteShape(this._drawnLatLngs);\n L.Editable.BaseEditor.prototype.endDrawing.call(this);\n delete this._drawnLatLngs;\n },\n\n addLatLng: function (latlng) {\n if (this._drawing === L.Editable.FORWARD) this._drawnLatLngs.push(latlng);\n else this._drawnLatLngs.unshift(latlng);\n this.feature._bounds.extend(latlng);\n var vertex = this.addVertexMarker(latlng, this._drawnLatLngs);\n this.onNewVertex(vertex);\n this.refresh();\n },\n\n newPointForward: function (latlng) {\n this.addLatLng(latlng);\n this.tools.attachForwardLineGuide();\n this.tools.anchorForwardLineGuide(latlng);\n },\n\n newPointBackward: function (latlng) {\n this.addLatLng(latlng);\n this.tools.anchorBackwardLineGuide(latlng);\n },\n\n // 🍂namespace PathEditor\n // 🍂method push()\n // Programmatically add a point while drawing.\n push: function (latlng) {\n if (!latlng) return console.error('L.Editable.PathEditor.push expect a valid latlng as parameter');\n if (this._drawing === L.Editable.FORWARD) this.newPointForward(latlng);\n else this.newPointBackward(latlng);\n },\n\n removeLatLng: function (latlng) {\n latlng.__vertex.delete();\n this.refresh();\n },\n\n // 🍂method pop(): L.LatLng or null\n // Programmatically remove last point (if any) while drawing.\n pop: function () {\n if (this._drawnLatLngs.length <= 1) return;\n var latlng;\n if (this._drawing === L.Editable.FORWARD) latlng = this._drawnLatLngs[this._drawnLatLngs.length - 1];\n else latlng = this._drawnLatLngs[0];\n this.removeLatLng(latlng);\n if (this._drawing === L.Editable.FORWARD) this.tools.anchorForwardLineGuide(this._drawnLatLngs[this._drawnLatLngs.length - 1]);\n else this.tools.anchorForwardLineGuide(this._drawnLatLngs[0]);\n return latlng;\n },\n\n processDrawingClick: function (e) {\n if (e.vertex && e.vertex.editor === this) return;\n if (this._drawing === L.Editable.FORWARD) this.newPointForward(e.latlng);\n else this.newPointBackward(e.latlng);\n this.fireAndForward('editable:drawing:clicked', e);\n },\n\n onDrawingMouseMove: function (e) {\n L.Editable.BaseEditor.prototype.onDrawingMouseMove.call(this, e);\n if (this._drawing) {\n this.tools.moveForwardLineGuide(e.latlng);\n this.tools.moveBackwardLineGuide(e.latlng);\n }\n },\n\n refresh: function () {\n this.feature.redraw();\n this.onEditing();\n },\n\n // 🍂namespace PathEditor\n // 🍂method newShape(latlng?: L.LatLng)\n // Add a new shape (Polyline, Polygon) in a multi, and setup up drawing tools to draw it;\n // if optional `latlng` is given, start a path at this point.\n newShape: function (latlng) {\n var shape = this.addNewEmptyShape();\n if (!shape) return;\n this.setDrawnLatLngs(shape[0] || shape); // Polygon or polyline\n this.startDrawingForward();\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:new: ShapeEvent\n // Fired when a new shape is created in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:new', {shape: shape});\n if (latlng) this.newPointForward(latlng);\n },\n\n deleteShape: function (shape, latlngs) {\n var e = {shape: shape};\n L.Editable.makeCancellable(e);\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:delete: CancelableShapeEvent\n // Fired before a new shape is deleted in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:delete', e);\n if (e._cancelled) return;\n shape = this._deleteShape(shape, latlngs);\n if (this.ensureNotFlat) this.ensureNotFlat(); // Polygon.\n this.feature.setLatLngs(this.getLatLngs()); // Force bounds reset.\n this.refresh();\n this.reset();\n // 🍂namespace Editable\n // 🍂section Shape events\n // 🍂event editable:shape:deleted: ShapeEvent\n // Fired after a new shape is deleted in a multi (Polygon or Polyline).\n this.fireAndForward('editable:shape:deleted', {shape: shape});\n return shape;\n },\n\n _deleteShape: function (shape, latlngs) {\n latlngs = latlngs || this.getLatLngs();\n if (!latlngs.length) return;\n var self = this,\n inplaceDelete = function (latlngs, shape) {\n // Called when deleting a flat latlngs\n shape = latlngs.splice(0, Number.MAX_VALUE);\n return shape;\n },\n spliceDelete = function (latlngs, shape) {\n // Called when removing a latlngs inside an array\n latlngs.splice(latlngs.indexOf(shape), 1);\n if (!latlngs.length) self._deleteShape(latlngs);\n return shape;\n };\n if (latlngs === shape) return inplaceDelete(latlngs, shape);\n for (var i = 0; i < latlngs.length; i++) {\n if (latlngs[i] === shape) return spliceDelete(latlngs, shape);\n else if (latlngs[i].indexOf(shape) !== -1) return spliceDelete(latlngs[i], shape);\n }\n },\n\n // 🍂namespace PathEditor\n // 🍂method deleteShapeAt(latlng: L.LatLng): Array\n // Remove a path shape at the given `latlng`.\n deleteShapeAt: function (latlng) {\n var shape = this.feature.shapeAt(latlng);\n if (shape) return this.deleteShape(shape);\n },\n\n // 🍂method appendShape(shape: Array)\n // Append a new shape to the Polygon or Polyline.\n appendShape: function (shape) {\n this.insertShape(shape);\n },\n\n // 🍂method prependShape(shape: Array)\n // Prepend a new shape to the Polygon or Polyline.\n prependShape: function (shape) {\n this.insertShape(shape, 0);\n },\n\n // 🍂method insertShape(shape: Array, index: int)\n // Insert a new shape to the Polygon or Polyline at given index (default is to append).\n insertShape: function (shape, index) {\n this.ensureMulti();\n shape = this.formatShape(shape);\n if (typeof index === 'undefined') index = this.feature._latlngs.length;\n this.feature._latlngs.splice(index, 0, shape);\n this.feature.redraw();\n if (this._enabled) this.reset();\n },\n\n extendBounds: function (e) {\n this.feature._bounds.extend(e.vertex.latlng);\n },\n\n onDragStart: function (e) {\n this.editLayer.clearLayers();\n L.Editable.BaseEditor.prototype.onDragStart.call(this, e);\n },\n\n onDragEnd: function (e) {\n this.initVertexMarkers();\n L.Editable.BaseEditor.prototype.onDragEnd.call(this, e);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PolylineEditor; 🍂aka L.Editable.PolylineEditor\n // 🍂inherits PathEditor\n L.Editable.PolylineEditor = L.Editable.PathEditor.extend({\n\n startDrawingBackward: function () {\n this._drawing = L.Editable.BACKWARD;\n this.startDrawing();\n },\n\n // 🍂method continueBackward(latlngs?: Array)\n // Set up drawing tools to continue the line backward.\n continueBackward: function (latlngs) {\n if (this.drawing()) return;\n latlngs = latlngs || this.getDefaultLatLngs();\n this.setDrawnLatLngs(latlngs);\n if (latlngs.length > 0) {\n this.tools.attachBackwardLineGuide();\n this.tools.anchorBackwardLineGuide(latlngs[0]);\n }\n this.startDrawingBackward();\n },\n\n // 🍂method continueForward(latlngs?: Array)\n // Set up drawing tools to continue the line forward.\n continueForward: function (latlngs) {\n if (this.drawing()) return;\n latlngs = latlngs || this.getDefaultLatLngs();\n this.setDrawnLatLngs(latlngs);\n if (latlngs.length > 0) {\n this.tools.attachForwardLineGuide();\n this.tools.anchorForwardLineGuide(latlngs[latlngs.length - 1]);\n }\n this.startDrawingForward();\n },\n\n getDefaultLatLngs: function (latlngs) {\n latlngs = latlngs || this.feature._latlngs;\n if (!latlngs.length || latlngs[0] instanceof L.LatLng) return latlngs;\n else return this.getDefaultLatLngs(latlngs[0]);\n },\n\n ensureMulti: function () {\n if (this.feature._latlngs.length && isFlat(this.feature._latlngs)) {\n this.feature._latlngs = [this.feature._latlngs];\n }\n },\n\n addNewEmptyShape: function () {\n if (this.feature._latlngs.length) {\n var shape = [];\n this.appendShape(shape);\n return shape;\n } else {\n return this.feature._latlngs;\n }\n },\n\n formatShape: function (shape) {\n if (isFlat(shape)) return shape;\n else if (shape[0]) return this.formatShape(shape[0]);\n },\n\n // 🍂method splitShape(latlngs?: Array, index: int)\n // Split the given `latlngs` shape at index `index` and integrate new shape in instance `latlngs`.\n splitShape: function (shape, index) {\n if (!index || index >= shape.length - 1) return;\n this.ensureMulti();\n var shapeIndex = this.feature._latlngs.indexOf(shape);\n if (shapeIndex === -1) return;\n var first = shape.slice(0, index + 1),\n second = shape.slice(index);\n // We deal with reference, we don't want twice the same latlng around.\n second[0] = L.latLng(second[0].lat, second[0].lng, second[0].alt);\n this.feature._latlngs.splice(shapeIndex, 1, first, second);\n this.refresh();\n this.reset();\n }\n\n });\n\n // 🍂namespace Editable; 🍂class PolygonEditor; 🍂aka L.Editable.PolygonEditor\n // 🍂inherits PathEditor\n L.Editable.PolygonEditor = L.Editable.PathEditor.extend({\n\n CLOSED: true,\n MIN_VERTEX: 3,\n\n newPointForward: function (latlng) {\n L.Editable.PathEditor.prototype.newPointForward.call(this, latlng);\n if (!this.tools.backwardLineGuide._latlngs.length) this.tools.anchorBackwardLineGuide(latlng);\n if (this._drawnLatLngs.length === 2) this.tools.attachBackwardLineGuide();\n },\n\n addNewEmptyHole: function (latlng) {\n this.ensureNotFlat();\n var latlngs = this.feature.shapeAt(latlng);\n if (!latlngs) return;\n var holes = [];\n latlngs.push(holes);\n return holes;\n },\n\n // 🍂method newHole(latlng?: L.LatLng, index: int)\n // Set up drawing tools for creating a new hole on the Polygon. If the `latlng` param is given, a first point is created.\n newHole: function (latlng) {\n var holes = this.addNewEmptyHole(latlng);\n if (!holes) return;\n this.setDrawnLatLngs(holes);\n this.startDrawingForward();\n if (latlng) this.newPointForward(latlng);\n },\n\n addNewEmptyShape: function () {\n if (this.feature._latlngs.length && this.feature._latlngs[0].length) {\n var shape = [];\n this.appendShape(shape);\n return shape;\n } else {\n return this.feature._latlngs;\n }\n },\n\n ensureMulti: function () {\n if (this.feature._latlngs.length && isFlat(this.feature._latlngs[0])) {\n this.feature._latlngs = [this.feature._latlngs];\n }\n },\n\n ensureNotFlat: function () {\n if (!this.feature._latlngs.length || isFlat(this.feature._latlngs)) this.feature._latlngs = [this.feature._latlngs];\n },\n\n vertexCanBeDeleted: function (vertex) {\n var parent = this.feature.parentShape(vertex.latlngs),\n idx = L.Util.indexOf(parent, vertex.latlngs);\n if (idx > 0) return true; // Holes can be totally deleted without removing the layer itself.\n return L.Editable.PathEditor.prototype.vertexCanBeDeleted.call(this, vertex);\n },\n\n getDefaultLatLngs: function () {\n if (!this.feature._latlngs.length) this.feature._latlngs.push([]);\n return this.feature._latlngs[0];\n },\n\n formatShape: function (shape) {\n // [[1, 2], [3, 4]] => must be nested\n // [] => must be nested\n // [[]] => is already nested\n if (isFlat(shape) && (!shape[0] || shape[0].length !== 0)) return [shape];\n else return shape;\n }\n\n });\n\n // 🍂namespace Editable; 🍂class RectangleEditor; 🍂aka L.Editable.RectangleEditor\n // 🍂inherits PathEditor\n L.Editable.RectangleEditor = L.Editable.PathEditor.extend({\n\n CLOSED: true,\n MIN_VERTEX: 4,\n\n options: {\n skipMiddleMarkers: true\n },\n\n extendBounds: function (e) {\n var index = e.vertex.getIndex(),\n next = e.vertex.getNext(),\n previous = e.vertex.getPrevious(),\n oppositeIndex = (index + 2) % 4,\n opposite = e.vertex.latlngs[oppositeIndex],\n bounds = new L.LatLngBounds(e.latlng, opposite);\n // Update latlngs by hand to preserve order.\n previous.latlng.update([e.latlng.lat, opposite.lng]);\n next.latlng.update([opposite.lat, e.latlng.lng]);\n this.updateBounds(bounds);\n this.refreshVertexMarkers();\n },\n\n onDrawingMouseDown: function (e) {\n L.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, e);\n this.connect();\n var latlngs = this.getDefaultLatLngs();\n // L.Polygon._convertLatLngs removes last latlng if it equals first point,\n // which is the case here as all latlngs are [0, 0]\n if (latlngs.length === 3) latlngs.push(e.latlng);\n var bounds = new L.LatLngBounds(e.latlng, e.latlng);\n this.updateBounds(bounds);\n this.updateLatLngs(bounds);\n this.refresh();\n this.reset();\n // Stop dragging map.\n // L.Draggable has two workflows:\n // - mousedown => mousemove => mouseup\n // - touchstart => touchmove => touchend\n // Problem: L.Map.Tap does not allow us to listen to touchstart, so we only\n // can deal with mousedown, but then when in a touch device, we are dealing with\n // simulated events (actually simulated by L.Map.Tap), which are no more taken\n // into account by L.Draggable.\n // Ref.: https://github.com/Leaflet/Leaflet.Editable/issues/103\n e.originalEvent._simulated = false;\n this.map.dragging._draggable._onUp(e.originalEvent);\n // Now transfer ongoing drag action to the bottom right corner.\n // Should we refine which corner will handle the drag according to\n // drag direction?\n latlngs[3].__vertex.dragging._draggable._onDown(e.originalEvent);\n },\n\n onDrawingMouseUp: function (e) {\n this.commitDrawing(e);\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseUp.call(this, e);\n },\n\n onDrawingMouseMove: function (e) {\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseMove.call(this, e);\n },\n\n\n getDefaultLatLngs: function (latlngs) {\n return latlngs || this.feature._latlngs[0];\n },\n\n updateBounds: function (bounds) {\n this.feature._bounds = bounds;\n },\n\n updateLatLngs: function (bounds) {\n var latlngs = this.getDefaultLatLngs(),\n newLatlngs = this.feature._boundsToLatLngs(bounds);\n // Keep references.\n for (var i = 0; i < latlngs.length; i++) {\n latlngs[i].update(newLatlngs[i]);\n }\n }\n\n });\n\n // 🍂namespace Editable; 🍂class CircleEditor; 🍂aka L.Editable.CircleEditor\n // 🍂inherits PathEditor\n L.Editable.CircleEditor = L.Editable.PathEditor.extend({\n\n MIN_VERTEX: 2,\n\n options: {\n skipMiddleMarkers: true\n },\n\n initialize: function (map, feature, options) {\n L.Editable.PathEditor.prototype.initialize.call(this, map, feature, options);\n this._resizeLatLng = this.computeResizeLatLng();\n },\n\n computeResizeLatLng: function () {\n // While circle is not added to the map, _radius is not set.\n var delta = (this.feature._radius || this.feature._mRadius) * Math.cos(Math.PI / 4),\n point = this.map.project(this.feature._latlng);\n return this.map.unproject([point.x + delta, point.y - delta]);\n },\n\n updateResizeLatLng: function () {\n this._resizeLatLng.update(this.computeResizeLatLng());\n this._resizeLatLng.__vertex.update();\n },\n\n getLatLngs: function () {\n return [this.feature._latlng, this._resizeLatLng];\n },\n\n getDefaultLatLngs: function () {\n return this.getLatLngs();\n },\n\n onVertexMarkerDrag: function (e) {\n if (e.vertex.getIndex() === 1) this.resize(e);\n else this.updateResizeLatLng(e);\n L.Editable.PathEditor.prototype.onVertexMarkerDrag.call(this, e);\n },\n\n resize: function (e) {\n var radius = this.feature._latlng.distanceTo(e.latlng);\n this.feature.setRadius(radius);\n },\n\n onDrawingMouseDown: function (e) {\n L.Editable.PathEditor.prototype.onDrawingMouseDown.call(this, e);\n this._resizeLatLng.update(e.latlng);\n this.feature._latlng.update(e.latlng);\n this.connect();\n // Stop dragging map.\n e.originalEvent._simulated = false;\n this.map.dragging._draggable._onUp(e.originalEvent);\n // Now transfer ongoing drag action to the radius handler.\n this._resizeLatLng.__vertex.dragging._draggable._onDown(e.originalEvent);\n },\n\n onDrawingMouseUp: function (e) {\n this.commitDrawing(e);\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseUp.call(this, e);\n },\n\n onDrawingMouseMove: function (e) {\n e.originalEvent._simulated = false;\n L.Editable.PathEditor.prototype.onDrawingMouseMove.call(this, e);\n },\n\n onDrag: function (e) {\n L.Editable.PathEditor.prototype.onDrag.call(this, e);\n this.feature.dragging.updateLatLng(this._resizeLatLng);\n }\n\n });\n\n // 🍂namespace Editable; 🍂class EditableMixin\n // `EditableMixin` is included to `L.Polyline`, `L.Polygon`, `L.Rectangle`, `L.Circle`\n // and `L.Marker`. It adds some methods to them.\n // *When editing is enabled, the editor is accessible on the instance with the\n // `editor` property.*\n var EditableMixin = {\n\n createEditor: function (map) {\n map = map || this._map;\n var tools = (this.options.editOptions || {}).editTools || map.editTools;\n if (!tools) throw Error('Unable to detect Editable instance.');\n var Klass = this.options.editorClass || this.getEditorClass(tools);\n return new Klass(map, this, this.options.editOptions);\n },\n\n // 🍂method enableEdit(map?: L.Map): this.editor\n // Enable editing, by creating an editor if not existing, and then calling `enable` on it.\n enableEdit: function (map) {\n if (!this.editor) this.createEditor(map);\n this.editor.enable();\n return this.editor;\n },\n\n // 🍂method editEnabled(): boolean\n // Return true if current instance has an editor attached, and this editor is enabled.\n editEnabled: function () {\n return this.editor && this.editor.enabled();\n },\n\n // 🍂method disableEdit()\n // Disable editing, also remove the editor property reference.\n disableEdit: function () {\n if (this.editor) {\n this.editor.disable();\n delete this.editor;\n }\n },\n\n // 🍂method toggleEdit()\n // Enable or disable editing, according to current status.\n toggleEdit: function () {\n if (this.editEnabled()) this.disableEdit();\n else this.enableEdit();\n },\n\n _onEditableAdd: function () {\n if (this.editor) this.enableEdit();\n }\n\n };\n\n var PolylineMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.polylineEditorClass) ? tools.options.polylineEditorClass : L.Editable.PolylineEditor;\n },\n\n shapeAt: function (latlng, latlngs) {\n // We can have those cases:\n // - latlngs are just a flat array of latlngs, use this\n // - latlngs is an array of arrays of latlngs, loop over\n var shape = null;\n latlngs = latlngs || this._latlngs;\n if (!latlngs.length) return shape;\n else if (isFlat(latlngs) && this.isInLatLngs(latlng, latlngs)) shape = latlngs;\n else for (var i = 0; i < latlngs.length; i++) if (this.isInLatLngs(latlng, latlngs[i])) return latlngs[i];\n return shape;\n },\n\n isInLatLngs: function (l, latlngs) {\n if (!latlngs) return false;\n var i, k, len, part = [], p,\n w = this._clickTolerance();\n this._projectLatlngs(latlngs, part, this._pxBounds);\n part = part[0];\n p = this._map.latLngToLayerPoint(l);\n\n if (!this._pxBounds.contains(p)) { return false; }\n for (i = 1, len = part.length, k = 0; i < len; k = i++) {\n\n if (L.LineUtil.pointToSegmentDistance(p, part[k], part[i]) <= w) {\n return true;\n }\n }\n return false;\n }\n\n };\n\n var PolygonMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.polygonEditorClass) ? tools.options.polygonEditorClass : L.Editable.PolygonEditor;\n },\n\n shapeAt: function (latlng, latlngs) {\n // We can have those cases:\n // - latlngs are just a flat array of latlngs, use this\n // - latlngs is an array of arrays of latlngs, this is a simple polygon (maybe with holes), use the first\n // - latlngs is an array of arrays of arrays, this is a multi, loop over\n var shape = null;\n latlngs = latlngs || this._latlngs;\n if (!latlngs.length) return shape;\n else if (isFlat(latlngs) && this.isInLatLngs(latlng, latlngs)) shape = latlngs;\n else if (isFlat(latlngs[0]) && this.isInLatLngs(latlng, latlngs[0])) shape = latlngs;\n else for (var i = 0; i < latlngs.length; i++) if (this.isInLatLngs(latlng, latlngs[i][0])) return latlngs[i];\n return shape;\n },\n\n isInLatLngs: function (l, latlngs) {\n var inside = false, l1, l2, j, k, len2;\n\n for (j = 0, len2 = latlngs.length, k = len2 - 1; j < len2; k = j++) {\n l1 = latlngs[j];\n l2 = latlngs[k];\n\n if (((l1.lat > l.lat) !== (l2.lat > l.lat)) &&\n (l.lng < (l2.lng - l1.lng) * (l.lat - l1.lat) / (l2.lat - l1.lat) + l1.lng)) {\n inside = !inside;\n }\n }\n\n return inside;\n },\n\n parentShape: function (shape, latlngs) {\n latlngs = latlngs || this._latlngs;\n if (!latlngs) return;\n var idx = L.Util.indexOf(latlngs, shape);\n if (idx !== -1) return latlngs;\n for (var i = 0; i < latlngs.length; i++) {\n idx = L.Util.indexOf(latlngs[i], shape);\n if (idx !== -1) return latlngs[i];\n }\n }\n\n };\n\n\n var MarkerMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.markerEditorClass) ? tools.options.markerEditorClass : L.Editable.MarkerEditor;\n }\n\n };\n\n var RectangleMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.rectangleEditorClass) ? tools.options.rectangleEditorClass : L.Editable.RectangleEditor;\n }\n\n };\n\n var CircleMixin = {\n\n getEditorClass: function (tools) {\n return (tools && tools.options.circleEditorClass) ? tools.options.circleEditorClass : L.Editable.CircleEditor;\n }\n\n };\n\n var keepEditable = function () {\n // Make sure you can remove/readd an editable layer.\n this.on('add', this._onEditableAdd);\n };\n\n var isFlat = L.LineUtil.isFlat || L.LineUtil._flat || L.Polyline._flat; // <=> 1.1 compat.\n\n\n if (L.Polyline) {\n L.Polyline.include(EditableMixin);\n L.Polyline.include(PolylineMixin);\n L.Polyline.addInitHook(keepEditable);\n }\n if (L.Polygon) {\n L.Polygon.include(EditableMixin);\n L.Polygon.include(PolygonMixin);\n }\n if (L.Marker) {\n L.Marker.include(EditableMixin);\n L.Marker.include(MarkerMixin);\n L.Marker.addInitHook(keepEditable);\n }\n if (L.Rectangle) {\n L.Rectangle.include(EditableMixin);\n L.Rectangle.include(RectangleMixin);\n }\n if (L.Circle) {\n L.Circle.include(EditableMixin);\n L.Circle.include(CircleMixin);\n }\n\n L.LatLng.prototype.update = function (latlng) {\n latlng = L.latLng(latlng);\n this.lat = latlng.lat;\n this.lng = latlng.lng;\n }\n\n}, window));\n","import { setOptions } from 'leaflet';\n\nvar debounce = function (fn, time) {\n var timeout;\n\n var debouncedFunction = 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 debouncedFunction.cancel = function() {\n if (timeout) {\n clearTimeout(timeout);\n }\n };\n\n return debouncedFunction;\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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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\nexport { capitalizeFirstLetter, collectionCleaner, debounce, findRealParent, optionsMerger, propsBinder };\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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 Circle = {\n mixins: [Path],\n props: {\n fill: {\n type: Boolean,\n custom: true,\n default: true\n },\n radius: {\n type: Number,\n default: null\n }\n },\n mounted: function mounted () {\n this.circleOptions = Object.assign({}, this.pathOptions,\n {radius: this.radius});\n }\n};\n\nexport default Circle;\n","var Control = {\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\nexport default Control;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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 GridLayer = {\n mixins: [Layer],\n props: {\n pane: {\n type: String,\n default: 'tilePane'\n },\n opacity: {\n type: Number,\n custom: false,\n default: 1.0\n },\n zIndex: {\n type: Number,\n default: 1\n },\n tileSize: {\n type: Number,\n default: 256\n },\n noWrap: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.gridLayerOptions = Object.assign({}, this.layerOptions,\n {pane: this.pane,\n opacity: this.opacity,\n zIndex: this.zIndex,\n tileSize: this.tileSize,\n noWrap: this.noWrap});\n }\n};\n\nexport default GridLayer;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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 ImageOverlay = {\n mixins: [Layer, InteractiveLayer],\n props: {\n url: {\n type: String,\n custom: true\n },\n bounds: {\n custom: true\n },\n opacity: {\n type: Number,\n custom: true,\n default: 1.0\n },\n alt: {\n type: String,\n default: ''\n },\n interactive: {\n type: Boolean,\n default: false\n },\n crossOrigin: {\n type: Boolean,\n default: false\n },\n errorOverlayUrl: {\n type: String,\n custom: true,\n default: ''\n },\n zIndex: {\n type: Number,\n custom: true,\n default: 1\n },\n className: {\n type: String,\n default: ''\n }\n },\n mounted: function mounted () {\n this.imageOverlayOptions = Object.assign({}, this.layerOptions,\n this.interactiveLayerOptions,\n {opacity: this.opacity,\n alt: this.alt,\n interactive: this.interactive,\n crossOrigin: this.crossOrigin,\n errorOverlayUrl: this.errorOverlayUrl,\n zIndex: this.zIndex,\n className: this.className});\n },\n methods: {\n setOpacity: function setOpacity (opacity) {\n return this.mapObject.setOpacity(opacity);\n },\n setUrl: function setUrl (url) {\n return this.mapObject.setUrl(url);\n },\n setBounds: function setBounds (bounds) {\n return this.mapObject.setBounds(bounds);\n },\n getBounds: function getBounds () {\n return this.mapObject.getBounds();\n },\n getElement: function getElement () {\n return this.mapObject.getElement();\n },\n bringToFront: function bringToFront () {\n return this.mapObject.bringToFront();\n },\n bringToBack: function bringToBack () {\n return this.mapObject.bringToBack();\n }\n },\n render: function render () {\n return null;\n }\n};\n\nexport default ImageOverlay;\n","var 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\nexport default InteractiveLayer;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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\nexport default Layer;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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\nexport default LayerGroup;\n","var Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\nexport default Options;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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\nexport default Path;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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 Polygon = {\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\nexport default Polygon;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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\nexport default Polyline;\n","var 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\nexport default Popper;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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 GridLayer = {\n mixins: [Layer],\n props: {\n pane: {\n type: String,\n default: 'tilePane'\n },\n opacity: {\n type: Number,\n custom: false,\n default: 1.0\n },\n zIndex: {\n type: Number,\n default: 1\n },\n tileSize: {\n type: Number,\n default: 256\n },\n noWrap: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.gridLayerOptions = Object.assign({}, this.layerOptions,\n {pane: this.pane,\n opacity: this.opacity,\n zIndex: this.zIndex,\n tileSize: this.tileSize,\n noWrap: this.noWrap});\n }\n};\n\nvar TileLayer = {\n mixins: [GridLayer],\n props: {\n tms: {\n type: Boolean,\n default: false,\n },\n subdomains: {\n type: [String, Array],\n default: 'abc',\n validator: function (prop) {\n if (typeof prop === 'string') { return true; }\n // Validates array that array only contains only strings\n if (Array.isArray(prop)) {\n return prop.every(function (subdomain) { return typeof subdomain === 'string'; });\n }\n return false;\n },\n },\n detectRetina: {\n type: Boolean,\n default: false,\n },\n },\n mounted: function mounted() {\n this.tileLayerOptions = Object.assign({}, this.gridLayerOptions,\n {tms: this.tms,\n subdomains: this.subdomains,\n detectRetina: this.detectRetina});\n },\n render: function render() {\n return null;\n },\n};\n\nexport default TileLayer;\n","var Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\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 GridLayer = {\n mixins: [Layer],\n props: {\n pane: {\n type: String,\n default: 'tilePane'\n },\n opacity: {\n type: Number,\n custom: false,\n default: 1.0\n },\n zIndex: {\n type: Number,\n default: 1\n },\n tileSize: {\n type: Number,\n default: 256\n },\n noWrap: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.gridLayerOptions = Object.assign({}, this.layerOptions,\n {pane: this.pane,\n opacity: this.opacity,\n zIndex: this.zIndex,\n tileSize: this.tileSize,\n noWrap: this.noWrap});\n }\n};\n\nvar TileLayer = {\n mixins: [GridLayer],\n props: {\n tms: {\n type: Boolean,\n default: false,\n },\n subdomains: {\n type: [String, Array],\n default: 'abc',\n validator: function (prop) {\n if (typeof prop === 'string') { return true; }\n // Validates array that array only contains only strings\n if (Array.isArray(prop)) {\n return prop.every(function (subdomain) { return typeof subdomain === 'string'; });\n }\n return false;\n },\n },\n detectRetina: {\n type: Boolean,\n default: false,\n },\n },\n mounted: function mounted() {\n this.tileLayerOptions = Object.assign({}, this.gridLayerOptions,\n {tms: this.tms,\n subdomains: this.subdomains,\n detectRetina: this.detectRetina});\n },\n render: function render() {\n return null;\n },\n};\n\nvar TileLayerWMS = {\n mixins: [TileLayer],\n props: {\n layers: {\n type: String,\n default: ''\n },\n styles: {\n type: String,\n default: ''\n },\n format: {\n type: String,\n default: 'image/jpeg'\n },\n transparent: {\n type: Boolean,\n custom: false\n },\n version: {\n type: String,\n default: '1.1.1'\n },\n crs: {\n default: null\n },\n upperCase: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.tileLayerWMSOptions = Object.assign({}, this.tileLayerOptions,\n {layers: this.layers,\n styles: this.styles,\n format: this.format,\n transparent: this.transparent,\n version: this.version,\n crs: this.crs,\n upperCase: this.upperCase});\n }\n};\n\nexport default TileLayerWMS;\n","import { setOptions, circle, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 CircleMixin = {\n mixins: [Path],\n props: {\n fill: {\n type: Boolean,\n custom: true,\n default: true\n },\n radius: {\n type: Number,\n default: null\n }\n },\n mounted: function mounted () {\n this.circleOptions = Object.assign({}, this.pathOptions,\n {radius: this.radius});\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Draw a path in the shape of a circle around a center positioned at `latLng` coordinates\n */\nvar script = {\n name: 'LCircle',\n mixins: [CircleMixin, Options],\n props: {\n latLng: {\n type: [Object, Array],\n default: function () { return [0, 0]; },\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.circleOptions, this);\n this.mapObject = circle(this.latLng, 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 methods: {},\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\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__ = /*#__PURE__*/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, circleMarker, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 CircleMixin = {\n mixins: [Path],\n props: {\n fill: {\n type: Boolean,\n custom: true,\n default: true\n },\n radius: {\n type: Number,\n default: null\n }\n },\n mounted: function mounted () {\n this.circleOptions = Object.assign({}, this.pathOptions,\n {radius: this.radius});\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * A marker in the shape of a circle\n */\nvar script = {\n name: 'LCircleMarker',\n mixins: [CircleMixin, Options],\n props: {\n latLng: {\n type: [Object, Array],\n default: function () { return [0, 0]; },\n },\n pane: {\n type: String,\n default: 'markerPane',\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.circleOptions, this);\n this.mapObject = circleMarker(this.latLng, 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\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__ = /*#__PURE__*/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, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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, featureGroup, 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 custom: true,\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 /**\n * Leaflet options to pass to the component constructor\n */\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: 'LFeatureGroup',\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 = featureGroup();\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\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__ = /*#__PURE__*/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, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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 Vue from 'vue';\nimport { setOptions, GridLayer, DomEvent, DomUtil } 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 GridLayerMixin = {\n mixins: [Layer],\n props: {\n pane: {\n type: String,\n default: 'tilePane'\n },\n opacity: {\n type: Number,\n custom: false,\n default: 1.0\n },\n zIndex: {\n type: Number,\n default: 1\n },\n tileSize: {\n type: Number,\n default: 256\n },\n noWrap: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.gridLayerOptions = Object.assign({}, this.layerOptions,\n {pane: this.pane,\n opacity: this.opacity,\n zIndex: this.zIndex,\n tileSize: this.tileSize,\n noWrap: this.noWrap});\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Creates a map layer where each tile is an instantiated Vue component.\n * Each tile component is given `coords` props by `l-grid-layer` to indicate\n * the zoom level and position of the tile\n * (see https://leafletjs.com/examples/extending/extending-2-layers.html#lgridlayer-and-dom-elements).\n */\nvar script = {\n name: 'LGridLayer',\n mixins: [GridLayerMixin, Options],\n\n props: {\n tileComponent: {\n type: Object,\n custom: true,\n required: true,\n },\n },\n\n data: function data() {\n return {\n tileComponents: {},\n };\n },\n\n computed: {\n TileConstructor: function TileConstructor() {\n return Vue.extend(this.tileComponent);\n },\n },\n\n mounted: function mounted() {\n var this$1 = this;\n\n var GLayer = GridLayer.extend({});\n var options = optionsMerger(this.gridLayerOptions, this);\n this.mapObject = new GLayer(options);\n DomEvent.on(this.mapObject, this.$listeners);\n this.mapObject.on('tileunload', this.onUnload, this);\n propsBinder(this, this.mapObject, this.$options.props);\n this.mapObject.createTile = this.createTile;\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.removeLayer(this.mapObject);\n this.mapObject.off('tileunload', this.onUnload);\n this.mapObject = null;\n },\n\n methods: {\n createTile: function createTile(coords) {\n var div = DomUtil.create('div');\n var dummy = DomUtil.create('div');\n div.appendChild(dummy);\n\n var tileInstance = new this.TileConstructor({\n el: dummy,\n parent: this,\n propsData: {\n coords: coords,\n },\n });\n\n var key = this.mapObject._tileCoordsToKey(coords);\n this.tileComponents[key] = tileInstance;\n\n return div;\n },\n\n onUnload: function onUnload(e) {\n var key = this.mapObject._tileCoordsToKey(e.coords);\n if (typeof this.tileComponents[key] !== 'undefined') {\n this.tileComponents[key].$destroy();\n this.tileComponents[key].$el.remove();\n delete this.tileComponents[key];\n }\n },\n\n setTileComponent: function setTileComponent(newVal) {\n this.mapObject.redraw();\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\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')};\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__ = /*#__PURE__*/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, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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\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__ = /*#__PURE__*/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, 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\n/**\n * Set a default icon\n * @deprecated since version 2.0\n */\nvar script = {\n name: 'LIconDefault',\n props: {\n imagePath: {\n type: String,\n custom: true,\n default: '',\n },\n },\n mounted: function mounted() {\n Icon.Default.imagePath = this.imagePath;\n propsBinder(this, {}, this.$options.props);\n },\n methods: {\n setImagePath: function setImagePath(newVal) {\n Icon.Default.imagePath = 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\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__ = /*#__PURE__*/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, imageOverlay, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 ImageOverlayMixin = {\n mixins: [Layer, InteractiveLayer],\n props: {\n url: {\n type: String,\n custom: true\n },\n bounds: {\n custom: true\n },\n opacity: {\n type: Number,\n custom: true,\n default: 1.0\n },\n alt: {\n type: String,\n default: ''\n },\n interactive: {\n type: Boolean,\n default: false\n },\n crossOrigin: {\n type: Boolean,\n default: false\n },\n errorOverlayUrl: {\n type: String,\n custom: true,\n default: ''\n },\n zIndex: {\n type: Number,\n custom: true,\n default: 1\n },\n className: {\n type: String,\n default: ''\n }\n },\n mounted: function mounted () {\n this.imageOverlayOptions = Object.assign({}, this.layerOptions,\n this.interactiveLayerOptions,\n {opacity: this.opacity,\n alt: this.alt,\n interactive: this.interactive,\n crossOrigin: this.crossOrigin,\n errorOverlayUrl: this.errorOverlayUrl,\n zIndex: this.zIndex,\n className: this.className});\n },\n methods: {\n setOpacity: function setOpacity (opacity) {\n return this.mapObject.setOpacity(opacity);\n },\n setUrl: function setUrl (url) {\n return this.mapObject.setUrl(url);\n },\n setBounds: function setBounds (bounds) {\n return this.mapObject.setBounds(bounds);\n },\n getBounds: function getBounds () {\n return this.mapObject.getBounds();\n },\n getElement: function getElement () {\n return this.mapObject.getElement();\n },\n bringToFront: function bringToFront () {\n return this.mapObject.bringToFront();\n },\n bringToBack: function bringToBack () {\n return this.mapObject.bringToBack();\n }\n },\n render: function render () {\n return null;\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Easily display a image overlay.\n */\nvar script = {\n name: 'LImageOverlay',\n mixins: [ImageOverlayMixin, Options],\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.imageOverlayOptions, this);\n this.mapObject = imageOverlay(this.url, this.bounds, options);\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 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\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__ = /*#__PURE__*/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, 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 custom: true,\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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, tileLayer, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 GridLayer = {\n mixins: [Layer],\n props: {\n pane: {\n type: String,\n default: 'tilePane'\n },\n opacity: {\n type: Number,\n custom: false,\n default: 1.0\n },\n zIndex: {\n type: Number,\n default: 1\n },\n tileSize: {\n type: Number,\n default: 256\n },\n noWrap: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.gridLayerOptions = Object.assign({}, this.layerOptions,\n {pane: this.pane,\n opacity: this.opacity,\n zIndex: this.zIndex,\n tileSize: this.tileSize,\n noWrap: this.noWrap});\n }\n};\n\nvar TileLayer = {\n mixins: [GridLayer],\n props: {\n tms: {\n type: Boolean,\n default: false,\n },\n subdomains: {\n type: [String, Array],\n default: 'abc',\n validator: function (prop) {\n if (typeof prop === 'string') { return true; }\n // Validates array that array only contains only strings\n if (Array.isArray(prop)) {\n return prop.every(function (subdomain) { return typeof subdomain === 'string'; });\n }\n return false;\n },\n },\n detectRetina: {\n type: Boolean,\n default: false,\n },\n },\n mounted: function mounted() {\n this.tileLayerOptions = Object.assign({}, this.gridLayerOptions,\n {tms: this.tms,\n subdomains: this.subdomains,\n detectRetina: this.detectRetina});\n },\n render: function render() {\n return null;\n },\n};\n\nvar TileLayerWMS = {\n mixins: [TileLayer],\n props: {\n layers: {\n type: String,\n default: ''\n },\n styles: {\n type: String,\n default: ''\n },\n format: {\n type: String,\n default: 'image/jpeg'\n },\n transparent: {\n type: Boolean,\n custom: false\n },\n version: {\n type: String,\n default: '1.1.1'\n },\n crs: {\n default: null\n },\n upperCase: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted () {\n this.tileLayerWMSOptions = Object.assign({}, this.tileLayerOptions,\n {layers: this.layers,\n styles: this.styles,\n format: this.format,\n transparent: this.transparent,\n version: this.version,\n crs: this.crs,\n upperCase: this.upperCase});\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Display WMS services as tile layers on the map\n */\nvar script = {\n name: 'LWMSTileLayer',\n mixins: [TileLayerWMS, Options],\n props: {\n baseUrl: {\n type: String,\n default: null,\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.tileLayerWMSOptions, this);\n this.mapObject = tileLayer.wms(this.baseUrl, options);\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};\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\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__ = /*#__PURE__*/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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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","(function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"leaflet\"),require(\"leaflet.markercluster\"),require(\"vue2-leaflet\")):\"function\"==typeof define&&define.amd?define([\"leaflet\",\"leaflet.markercluster\",\"vue2-leaflet\"],t):\"object\"==typeof exports?exports.Vue2LeafletMarkercluster=t(require(\"leaflet\"),require(\"leaflet.markercluster\"),require(\"vue2-leaflet\")):e.Vue2LeafletMarkercluster=t(e.leaflet,e[\"leaflet.markercluster\"],e[\"vue2-leaflet\"])})(this,function(e,t,r){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,\"a\",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"/\",t(t.s=7)}([function(e,t,r){var n=r(2)(r(1),r(3),null,null);e.exports=n.exports},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(5),o=r(6),u=r(4),a={options:{type:Object,default:function(){return{}}}};t.default={props:a,data:function(){return{ready:!1}},mounted:function(){var e=this;this.mapObject=new n.MarkerClusterGroup(this.options),u.DomEvent.on(this.mapObject,this.$listeners),(0,o.propsBinder)(this,this.mapObject,a),this.ready=!0,this.parentContainer=(0,o.findRealParent)(this.$parent),this.parentContainer.addLayer(this),this.$nextTick(function(){e.$emit(\"ready\",e.mapObject)})},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(e,t){t||this.mapObject.addLayer(e.mapObject)},removeLayer:function(e,t){t||this.mapObject.removeLayer(e.mapObject)}}}},function(e,t){e.exports=function(e,t,r,n){var o,u=e=e||{},a=typeof e.default;\"object\"!==a&&\"function\"!==a||(o=e,u=e.default);var i=\"function\"==typeof u?u.options:u;if(t&&(i.render=t.render,i.staticRenderFns=t.staticRenderFns),r&&(i._scopeId=r),n){var f=i.computed||(i.computed={});Object.keys(n).forEach(function(e){var t=n[e];f[e]=function(){return t}})}return{esModule:o,exports:u,options:i}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(\"div\",{staticStyle:{display:\"none\"}},[e.ready?e._t(\"default\"):e._e()],2)},staticRenderFns:[]}},function(e,t){e.exports=require(\"leaflet\")},function(e,t){e.exports=require(\"leaflet.markercluster\")},function(e,t){e.exports=require(\"vue2-leaflet\")},function(e,t,r){e.exports=r(0)}])});\n//# sourceMappingURL=Vue2LeafletMarkercluster.js.map","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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 /**\n * Leaflet options to pass to the component constructor\n */\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\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__ = /*#__PURE__*/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, latLngBounds, rectangle, 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 typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\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 custom: true,\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 Polygon = {\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 /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Easily draw a rectangle on the map\n */\nvar script = {\n name: 'LRectangle',\n mixins: [Polygon, Options],\n props: {\n bounds: {\n default: function () { return [[0,0],[0,0]]; },\n validator: function (value) { return value && latLngBounds(value).isValid(); },\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 = rectangle(this.bounds, 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\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__ = /*#__PURE__*/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"],"sourceRoot":""}