Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alibaba-aero/vue2-leaflet

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alibaba-aero/vue2-leaflet - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

dist/vue2-leaflet.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vue2Leaflet={})}(this,function(t){"use strict";var e=function(t){for(var e=!1;!e;)void 0==t.mapObject?t=t.$parent:e=!0;return t};var n=function(t,e,n,i){for(var s=Object.keys(n),o=function(){var i,o=s[a],r="set"+((i=o).charAt(0).toUpperCase()+i.slice(1)),l=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);n[o].custom?t.$watch(o,function(e,n){t[r](e,n)},{deep:l}):"setOptions"==r?t.$watch(o,function(n,i){t.$leaflet().setOptions(e,n)},{deep:l}):t.$watch(o,function(t,n){e[r](t)},{deep:l})},a=0;a<s.length;a++)o()},i="undefined"!=typeof window,s=i?window.L:null,o={methods:{$leaflet:function(){return s},$loadLeaflet:function(){return i&&!s&&(s=require("leaflet")),Promise.resolve(s)}}},a={latLng:{type:[Object,Array]},radius:{type:Number},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},r={name:"LCircle",props:a,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.radius&&(t.radius=this.radius),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var r=s[o];void 0!==this[r]&&(t[r]=this[r])}this.mapObject=this.$leaflet().circle(this.latLng,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,a),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})}}},l=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};l._withStripped=!0;var u,c,d,p,h,f=(u={render:l,staticRenderFns:[]},d=void 0,p=!1,(h=("function"==typeof(c=r)?c.options:c)||{}).__file="/Projects/Vue2Leaflet/src/components/LCircle.vue",h.render||(h.render=u.render,h.staticRenderFns=u.staticRenderFns,h._compiled=!0,p&&(h.functional=!0)),h._scopeId=d,h),m={latLng:{type:[Object,Array]},radius:{type:Number,default:10},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},y={name:"LCircleMarker",props:m,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.radius&&(t.radius=this.radius),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().circleMarker(this.latLng,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,m),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})}}},b=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};b._withStripped=!0;var g=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LCircleMarker.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:b,staticRenderFns:[]},0,y,void 0,!1),v={prefix:{type:String,default:"Leaflet"},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var O=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlAttribution.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlAttribution",props:v,mixins:[o],mounted:function(){for(var t=this.options,e=["prefix","position"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.attribution(t),n(this,this.mapObject,v),this.mapObject.addTo(this.$parent.mapObject)},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),L={collapsed:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},hideSingleBase:{type:Boolean,default:!1},sortLayers:{type:Boolean,default:!1},sortFunction:{type:Function,default:void 0},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var j=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlLayers.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlLayers",props:L,mixins:[o],mounted:function(){for(var t=this.options,e=["collapsed","autoZIndex","hideSingleBase","sortLayers","sortFunction"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.layers(null,null,t),n(this,this.mapObject,L),this.$parent.registerLayerControl(this)},methods:{addLayer:function(t){"base"==t.layerType?this.mapObject.addBaseLayer(t.mapObject,t.name):"overlay"==t.layerType&&this.mapObject.addOverlay(t.mapObject,t.name)},removeLayer:function(t){this.mapObject.removeLayer(t.mapObject)}},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),S={maxWidth:{type:Number,default:100},metric:{type:Boolean,default:!0},imperial:{type:Boolean,default:!0},updateWhenIdle:{type:Boolean,default:!1},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var C=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlScale.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlScale",props:S,mixins:[o],mounted:function(){for(var t=this.options,e=["maxWidth","metric","imperial","updateWhenIdle","position"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.scale(t),n(this,this.mapObject,S),this.mapObject.addTo(this.$parent.mapObject)},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),_={zoomInText:{type:String,default:"+"},zoomInTitle:{type:String,default:"Zoom in"},zoomOutText:{type:String,default:"-"},zoomOutTitle:{type:String,default:"Zoom out"},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var A=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlZoom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlZoom",props:_,mixins:[o],mounted:function(){for(var t=this.options,e=["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","position"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.zoom(t),n(this,this.mapObject,_),this.mapObject.addTo(this.$parent.mapObject)},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),$={visible:{type:Boolean,custom:!0,default:!0}},R={name:"LFeatureGroup",props:$,data:function(){return{ready:!1}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().featureGroup(),n(this,this.mapObject,$),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=e(this.$parent),this.visible&&this.parentContainer.addLayer(this)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)},setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}}},B=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};B._withStripped=!0;var w=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LFeatureGroup.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:B,staticRenderFns:[]},0,R,void 0,!1);function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E={geojson:{type:[Object,Array],custom:!0,default:function(){return{}}},options:{type:Object,default:function(){return{}}},visible:{type:Boolean,custom:!0,default:!0}};var V=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LGeoJson.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LGeoJson",props:E,mixins:[o],mounted:function(){this.mapObject=this.$leaflet().geoJSON(this.geojson,this.options),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,E),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:F({setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setGeojson:function(t){this.mapObject.clearLayers(),this.mapObject.addData(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()},getBounds:function(){return this.mapObject.getBounds()}},"setVisible",function(t,e){t!==e&&(t?this.mapObject.addTo(this.parentContainer.mapObject):this.parentContainer.mapObject.removeLayer(this.mapObject))}),beforeDestroy:function(){this.parentContainer.mapObject.removeLayer(this.mapObject)},render:function(){return null}},void 0,void 0),N={imagePath:{type:String,custom:!0,default:""}};var x=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LIconDefault.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LIconDefault",props:N,mixins:[o],mounted:function(){this.$leaflet().Icon.Default.imagePath=this.imagePath,n(this,this.mapObject,N)},methods:{setImagePath:function(t,e){this.$leaflet().Icon.Default.imagePath=t}},render:function(){return null}},void 0,void 0),T={url:{type:String},bounds:{},opacity:{type:Number,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},visible:{type:Boolean,custom:!0,default:!0}};var W=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LImageOverlay.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LImageOverlay",props:T,mixins:[o],mounted:function(){var t={opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin};this.mapObject=this.$leaflet().imageOverlay(this.url,this.bounds,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,T),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:{setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},getBounds:function(){return this.mapObject.getBounds()}},beforeDestroy:function(){this.parentContainer.removeLayer(this)},render:function(){return null}},void 0,void 0),D={visible:{type:Boolean,custom:!0,default:!0}},P={name:"LLayerGroup",props:D,data:function(){return{ready:!1}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().layerGroup(),n(this,this.mapObject,D),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=e(this.$parent),this.visible&&this.parentContainer.addLayer(this)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)},setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}}},I=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};I._withStripped=!0;var J=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LLayerGroup.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:I,staticRenderFns:[]},0,P,void 0,!1),k=function(){return{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{custom:!0,default:void 0},maxBounds:{default:void 0},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:void 0},maxZoom:{type:Number,default:void 0},paddingBottomRight:{custom:!0,default:null},paddingTopLeft:{custom:!0,default:null},padding:{custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{custom:!0,default:function(){return null}},maxBoundsViscosity:{type:Number,default:0},options:{type:Object,default:function(){return{}}}}},Z={name:"LMap",props:k(),data:function(){return{ready:!1,movingRequest:0,lastSetCenter:void 0,lastSetBounds:void 0,layerControl:void 0,layersToAdd:[]}},mixins:[o],mounted:function(){var t=this,e=this.options;Object.assign(e,{minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs||this.$leaflet().CRS.EPSG3857}),null!=this.center&&(e.center=this.center),null!=this.zoom&&(e.zoom=this.zoom),this.mapObject=this.$leaflet().map(this.$el,e),this.setBounds(this.bounds),this.mapObject.on("moveend",function(){if(0==t.movingRequest){t.mapObject.getZoom()!=t.zoom&&t.$emit("update:zoom",t.mapObject.getZoom());var e=t.mapObject.getCenter();null!=t.center?Array.isArray(t.center)?(t.center[0]=e.lat,t.center[1]=e.lng):(t.center.lat=e.lat,t.center.lng=e.lng):t.$emit("update:center",e);var n=t.mapObject.getBounds();null!=t.bounds?Array.isArray(t.bounds)?Array.isArray(t.bounds[0])?(t.bounds[0][0]=n._southWest.lat,t.bounds[0][1]=n._southWest.lng,t.bounds[1][0]=n._northEast.lat,t.bounds[1][1]=n._northEast.lng):(t.bounds[0].lat=n._southWest.lat,t.bounds[0].lng=n._southWest.lng,t.bounds[1].lat=n._northEast.lat,t.bounds[1].lng=n._northEast.lng):(t.bounds._southWest.lat=n._southWest.lat,t.bounds._southWest.lng=n._southWest.lng,t.bounds._northEast.lat=n._northEast.lat,t.bounds._northEast.lng=n._northEast.lng):t.$emit("update:bounds",n)}else t.movingRequest-=1}),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,k()),this.ready=!0},methods:{registerLayerControl:function(t){for(var e in this.layerControl=t,this.mapObject.addControl(t.mapObject),this.layersToAdd)this.layerControl.addLayer(e);this.layerToAdd=null},addLayer:function(t,e){void 0!==t.layerType&&(void 0==this.layerControl?this.layersToAdd.push(t):this.layerControl.addLayer(t)),e||this.mapObject.addLayer(t.mapObject)},removeLayer:function(t,e){void 0!==t.layerType&&(void 0==this.layerControl?this.layersToAdd=this.layerToAdd.filter(function(e){return e.name!==t.name}):this.layerControl.removeLayer(t)),e||this.mapObject.removeLayer(t.mapObject)},setZoom:function(t,e){this.movingRequest+=1,this.mapObject.setZoom(t)},setCenter:function(t,e){if(null!=t){var n=0,i=0;Array.isArray(t)?(n=t[0],i=t[1]):(n=t.lat,i=t.lng);var s=null==this.lastSetCenter?this.mapObject.getCenter():this.lastSetCenter;s.lat==n&&s.lng==i||(s.lat=t.lat,s.lng=t.lng,this.lastSetCenter=s,this.movingRequest+=1,this.mapObject.panTo(t))}},setBounds:function(t,e){if(t){if(t instanceof this.$leaflet().LatLngBounds){if(!t.isValid())return}else if(!Array.isArray(t))return;var n=null==this.lastSetBounds?this.mapObject.getBounds():this.lastSetBounds,i=0,s=0,o=0,a=0;Array.isArray(n)?(Array.isArray(n[0])?(i=n[0][0],s=n[0][1]):(i=n[0].lat,s=n[0].lng),Array.isArray(n[1])?(o=n[1][0],a=n[1][1]):(o=n[1].lat,a=n[1].lng)):(i=n._southWest.lat,s=n._southWest.lng,o=n._northEast.lat,a=n._northEast.lng);var r,l,u,c;if(Array.isArray(t)&&(t=this.$leaflet().latLngBounds(t)),r=t._southWest.lat,l=t._southWest.lng,u=t._northEast.lat,c=t._northEast.lng,r!=i||l!=s||u!=o||c!=a){var d={};this.padding?d.padding=this.padding:(this.paddingBottomRight&&(d.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(d.paddingTopLeft=this.paddingTopLeft)),this.lastSetBounds=n,Array.isArray(n)?(Array.isArray(n[0])?(n[0][0]=i,n[0][1]=s):(n[0].lat=i,n[0].lng=s),Array.isArray(n[1])?(n[1][0]=o,n[1][1]=a):(n[1].lat=o,n[1].lng=a)):(n._southWest.lat=i,n._southWest.lng=s,n._northEast.lat=o,n._northEast.lng=a),this.movingRequest+=1,this.mapObject.fitBounds(t,d)}}},setPaddingBottomRight:function(t,e){this.paddingBottomRight=t},setPaddingTopLeft:function(t,e){this.paddingTopLeft=t},setPadding:function(t,e){this.padding=t},setCrs:function(t,e){console.log("Changing CRS is not yet supported by Leaflet")},fitBounds:function(t){this.mapObject.fitBounds(t)}}},z=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"vue2leaflet-map"},[this.ready?this._t("default"):this._e()],2)};z._withStripped=!0;var M=function(t,e,n,i,s,o,a,r){var l,u=("function"==typeof n?n.options:n)||{};if(u.__file="/Projects/Vue2Leaflet/src/components/LMap.vue",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,s&&(u.functional=!0)),u._scopeId=i,e&&(l=function(t){e.call(this,a(t))}),void 0!==l)if(u.functional){var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return u}({render:z,staticRenderFns:[]},function(t){t&&t("data-v-574ee924_0",{source:"\n.vue2leaflet-map {\n height: 100%;\n width: 100%;\n}\n",map:{version:3,sources:["/Projects/Vue2Leaflet/src/components/LMap.vue"],names:[],mappings:";AAgUA;EACA,aAAA;EACA,YAAA;CACA",file:"LMap.vue",sourcesContent:["<template>\n <div class=\"vue2leaflet-map\">\n <slot v-if=\"ready\"></slot>\n </div>\n</template>\n\n<script>\nimport { LeafletMixin } from '../utils/Leaflet';\nimport propsBinder from '../utils/propsBinder.js';\n\nexport const propsFactory = () => ({\n center: {\n type: [Object, Array],\n custom: true,\n default: () => [0, 0],\n },\n bounds: {\n custom: true,\n default: undefined,\n },\n maxBounds: {\n default: undefined,\n },\n zoom: {\n type: Number,\n custom: true,\n default: 0,\n },\n minZoom: {\n type: Number,\n default: undefined,\n },\n maxZoom: {\n type: Number,\n default: undefined,\n },\n paddingBottomRight: {\n custom: true,\n default: null,\n },\n paddingTopLeft: {\n custom: true,\n default: null\n },\n padding: {\n custom: true,\n default: null\n },\n worldCopyJump: {\n type: Boolean,\n default: false\n },\n crs: {\n custom: true,\n default: () => null,\n },\n maxBoundsViscosity: {\n type: Number,\n default: 0\n },\n options: {\n type: Object,\n default: () => ({}),\n },\n});\n\nexport default {\n name: 'LMap',\n props: propsFactory(),\n data() {\n return {\n ready: false,\n movingRequest: 0,\n lastSetCenter: undefined,\n lastSetBounds: undefined,\n layerControl: undefined,\n layersToAdd: []\n }\n },\n mixins: [\n LeafletMixin,\n ],\n mounted() {\n const options = this.options;\n Object.assign(options, {\n minZoom: this.minZoom,\n maxZoom: this.maxZoom,\n maxBounds: this.maxBounds,\n maxBoundsViscosity: this.maxBoundsViscosity,\n worldCopyJump: this.worldCopyJump,\n crs: this.crs || this.$leaflet().CRS.EPSG3857,\n });\n if (this.center != null) {\n options.center = this.center;\n }\n if (this.zoom != null) {\n options.zoom = this.zoom;\n }\n this.mapObject = this.$leaflet().map(this.$el, options);\n this.setBounds(this.bounds);\n this.mapObject.on('moveend', () => {\n if (this.movingRequest != 0) {\n this.movingRequest -= 1;\n return;\n }\n if (this.mapObject.getZoom() != this.zoom) {\n this.$emit('update:zoom', this.mapObject.getZoom());\n }\n let center = this.mapObject.getCenter();\n if (this.center != null) {\n if (Array.isArray(this.center)) {\n this.center[0] = center.lat;\n this.center[1] = center.lng;\n } else {\n this.center.lat = center.lat;\n this.center.lng = center.lng;\n }\n } else {\n this.$emit('update:center', center);\n }\n\n let bounds = this.mapObject.getBounds();\n if (this.bounds != null) {\n if (Array.isArray(this.bounds)) {\n if (Array.isArray(this.bounds[0])) {\n this.bounds[0][0] = bounds._southWest.lat;\n this.bounds[0][1] = bounds._southWest.lng;\n this.bounds[1][0] = bounds._northEast.lat;\n this.bounds[1][1] = bounds._northEast.lng;\n } else {\n this.bounds[0].lat = bounds._southWest.lat;\n this.bounds[0].lng = bounds._southWest.lng;\n this.bounds[1].lat = bounds._northEast.lat;\n this.bounds[1].lng = bounds._northEast.lng;\n }\n } else {\n this.bounds._southWest.lat = bounds._southWest.lat;\n this.bounds._southWest.lng = bounds._southWest.lng;\n this.bounds._northEast.lat = bounds._northEast.lat;\n this.bounds._northEast.lng = bounds._northEast.lng;\n }\n } else {\n this.$emit('update:bounds', bounds);\n }\n });\n this.$leaflet().DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, propsFactory());\n this.ready = true;\n },\n methods: {\n registerLayerControl(lControlLayers) {\n this.layerControl = lControlLayers;\n this.mapObject.addControl(lControlLayers.mapObject);\n for(var layer in this.layersToAdd) {\n this.layerControl.addLayer(layer);\n }\n this.layerToAdd = null;\n },\n addLayer(layer, alreadyAdded) {\n if (layer.layerType !== undefined) {\n if (this.layerControl == undefined) {\n this.layersToAdd.push(layer);\n } else {\n this.layerControl.addLayer(layer);\n }\n }\n if (!alreadyAdded) {\n this.mapObject.addLayer(layer.mapObject);\n }\n },\n removeLayer(layer, alreadyRemoved) {\n if (layer.layerType !== undefined) {\n if (this.layerControl == undefined) {\n this.layersToAdd = this.layerToAdd.filter((l) => l.name !== layer.name );\n } else {\n this.layerControl.removeLayer(layer);\n }\n }\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n },\n setZoom(newVal , oldVal) {\n this.movingRequest += 1;\n this.mapObject.setZoom(newVal);\n },\n setCenter(newVal, oldVal) {\n if (newVal == null) {\n return;\n }\n\n let newLat = 0;\n let newLng = 0;\n if (Array.isArray(newVal)) {\n newLat = newVal[0];\n newLng = newVal[1];\n } else {\n newLat = newVal.lat;\n newLng = newVal.lng;\n }\n let center = this.lastSetCenter == null ? this.mapObject.getCenter() : this.lastSetCenter;\n if (center.lat != newLat || center.lng != newLng) {\n center.lat = newVal.lat;\n center.lng = newVal.lng;\n this.lastSetCenter = center;\n this.movingRequest += 1;\n this.mapObject.panTo(newVal);\n }\n },\n setBounds(newVal, oldVal) {\n if (!newVal) {\n return;\n }\n if (newVal instanceof this.$leaflet().LatLngBounds) {\n if (!newVal.isValid()) {\n return;\n }\n } else if (!Array.isArray(newVal)) {\n return;\n }\n let bounds = this.lastSetBounds == null ? this.mapObject.getBounds() : this.lastSetBounds;\n let southWestLat = 0;\n let southWestLng = 0;\n let northEastLat = 0;\n let northEastLng = 0;\n if (Array.isArray(bounds)) {\n if (Array.isArray(bounds[0])) {\n southWestLat = bounds[0][0];\n southWestLng = bounds[0][1];\n } else {\n southWestLat = bounds[0].lat;\n southWestLng = bounds[0].lng;\n }\n if (Array.isArray(bounds[1])) {\n northEastLat = bounds[1][0];\n northEastLng = bounds[1][1];\n } else {\n northEastLat = bounds[1].lat;\n northEastLng = bounds[1].lng;\n }\n } else {\n southWestLat = bounds._southWest.lat;\n southWestLng = bounds._southWest.lng;\n northEastLat = bounds._northEast.lat;\n northEastLng = bounds._northEast.lng;\n }\n let southWestNewLat = 0;\n let southWestNewLng = 0;\n let northEastNewLat = 0;\n let northEastNewLng = 0;\n if (Array.isArray(newVal)) {\n newVal = this.$leaflet().latLngBounds(newVal);\n }\n southWestNewLat = newVal._southWest.lat;\n southWestNewLng = newVal._southWest.lng;\n northEastNewLat = newVal._northEast.lat;\n northEastNewLng = newVal._northEast.lng;\n let boundsChanged =\n (southWestNewLat != southWestLat) ||\n (southWestNewLng != southWestLng) ||\n (northEastNewLat != northEastLat) ||\n (northEastNewLng != northEastLng);\n if (boundsChanged) {\n var options = {};\n if (this.padding) {\n options.padding = this.padding;\n } else {\n if (this.paddingBottomRight) {\n options.paddingBottomRight = this.paddingBottomRight;\n }\n if (this.paddingTopLeft) {\n options.paddingTopLeft = this.paddingTopLeft;\n }\n }\n this.lastSetBounds = bounds;\n if (Array.isArray(bounds)) {\n if (Array.isArray(bounds[0])) {\n bounds[0][0] = southWestLat;\n bounds[0][1] = southWestLng;\n } else {\n bounds[0].lat = southWestLat;\n bounds[0].lng = southWestLng;\n }\n if (Array.isArray(bounds[1])) {\n bounds[1][0] = northEastLat;\n bounds[1][1] = northEastLng;\n } else {\n bounds[1].lat = northEastLat;\n bounds[1].lng = northEastLng;\n }\n } else {\n bounds._southWest.lat = southWestLat;\n bounds._southWest.lng = southWestLng;\n bounds._northEast.lat = northEastLat;\n bounds._northEast.lng = northEastLng;\n }\n this.movingRequest += 1;\n this.mapObject.fitBounds(newVal, options);\n }\n },\n setPaddingBottomRight(newVal, oldVal) {\n this.paddingBottomRight = newVal;\n },\n setPaddingTopLeft(newVal, oldVal) {\n this.paddingTopLeft = newVal;\n },\n setPadding(newVal, oldVal) {\n this.padding = newVal;\n },\n setCrs(newVal, oldVal) {\n console.log('Changing CRS is not yet supported by Leaflet');\n },\n fitBounds(bounds) {\n this.mapObject.fitBounds(bounds);\n }\n },\n}\n<\/script>\n\n<style type=\"text/css\">\n .vue2leaflet-map {\n height: 100%;\n width: 100%;\n }\n</style>\n"]},media:void 0})},Z,void 0,!1,0,function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),i="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,s){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var o=i?s.media||"default":t,a=n[o]||(n[o]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var r=s.source,l=a.ids.length;if(a.ids.push(t),i&&(a.element=a.element||document.querySelector("style[data-group="+o+"]")),!a.element){var u=a.element=document.createElement("style");u.type="text/css",s.media&&u.setAttribute("media",s.media),i&&(u.setAttribute("data-group",o),u.setAttribute("data-next-index","0")),e.appendChild(u)}if(i&&(l=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",l+1)),a.element.styleSheet)a.parts.push(r),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(r),d=a.element.childNodes;d[l]&&a.element.removeChild(d[l]),d.length?a.element.insertBefore(c,d[l]):a.element.appendChild(c)}}}}});var G=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LMapSsr.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{render:function(t){var e=[];if(this.isMounted){var n=t(M,{props:this.$options.propsData,on:this.$listeners},[this.$slots.default]);e.push(n)}return t("div",{class:["vue2leaflet-map-ssr"]},e)},props:k(),components:{LMap:M},mixins:[o],data:function(){return{isMounted:!1}},mounted:function(){return new Promise(function(t,e){return Promise.resolve(this.$loadLeaflet()).then(function(n){try{return this.isMounted=!0,t()}catch(t){return e(t)}}.bind(this),e)}.bind(this))}},void 0,void 0),q={draggable:{type:Boolean,custom:!0,default:!1},visible:{type:Boolean,custom:!0,default:!0},latLng:{type:[Object,Array],custom:!0},icon:{type:Object,custom:!0,default:null},zIndexOffset:{type:Number,custom:!1},options:{type:Object,default:function(){return{}}}},U={name:"LMarker",props:q,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t=this,i=this.options;if(null!==this.icon){var s=this.$leaflet().Icon;i.icon=new s(this.icon)}i.draggable=this.draggable,this.mapObject=this.$leaflet().marker(this.latLng,i),this.mapObject.on("move",function(e){Array.isArray(t.latLng)?(t.latLng[0]=e.latlng.lat,t.latLng[1]=e.latlng.lng):(t.latLng.lat=e.latlng.lat,t.latLng.lng=e.latlng.lng)}),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,q),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setDraggable:function(t,e){this.mapObject.dragging&&(t?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setIcon:function(t){if(null!==t){var e=this.$leaflet().Icon;this.mapObject.setIcon(new e(t))}},setLatLng:function(t){if(null!=t&&this.mapObject){var e=this.mapObject.getLatLng(),n={lat:t[0]||t.lat,lng:t[1]||t.lng};n.lat==e.lat&&n.lng==e.lng||this.mapObject.setLatLng(n)}}}},Y=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};Y._withStripped=!0;var H=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LMarker.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:Y,staticRenderFns:[]},0,U,void 0,!1),K={latLngs:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},Q={name:"LPolygon",props:K,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().polygon(this.latLngs,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,K),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setSmoothFactor:function(t,e){t!=e&&t&&this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t,e){t!=e&&t&&this.mapObject.setStyle({noClip:t})},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})},addLatLng:function(t){this.mapObject.addLatLng(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},X=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};X._withStripped=!0;var tt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LPolygon.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:X,staticRenderFns:[]},0,Q,void 0,!1),et={latLngs:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},nt={name:"LPolyline",props:et,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().polyline(this.latLngs,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,et),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setSmoothFactor:function(t,e){t!=e&&t&&this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t,e){t!=e&&t&&this.mapObject.setStyle({noClip:t})},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},it=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};it._withStripped=!0;var st=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LPolyline.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:it,staticRenderFns:[]},0,nt,void 0,!1),ot={content:{default:""},latLng:{type:[Object,Array]},options:{type:Object,default:function(){return{}}}},at={name:"LPopup",props:ot,data:function(){return{ready:!1}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().popup(this.options),void 0!==this.latLng&&this.mapObject.setLatLng(this.latLng),this.mapObject.setContent(this.content||this.$el),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,ot),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.mapObject.bindPopup(this.mapObject)},beforeDestroy:function(){this.parentContainer.mapObject&&this.parentContainer.mapObject.getPopup()&&this.parentContainer.mapObject.unbindPopup()}},rt=function(){var t=this.$createElement;return(this._self._c||t)("div",[this.ready?this._t("default"):this._e()],2)};rt._withStripped=!0;var lt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LPopup.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:rt,staticRenderFns:[]},0,at,void 0,!1),ut={bounds:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},ct={name:"LRectangle",props:ut,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().rectangle(this.bounds,t),this.ready=!0,this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,ut),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})}}},dt=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};dt._withStripped=!0;var pt,ht=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LRectangle.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:dt,staticRenderFns:[]},0,ct,void 0,!1),ft={url:String,attribution:{type:String,custom:!0},detectRetina:{type:Boolean,custom:!1,default:!1},token:{type:String,custom:!0},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},options:{type:Object,default:function(){return{}}},tms:{type:Boolean,default:!1},tileLayerClass:{type:Function,default:void 0},layerType:{type:String,default:void 0},name:{type:String,default:void 0},visible:{type:Boolean,custom:!0,default:!0}};var mt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LTileLayer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,(F(pt={name:"LTileLayer",props:ft,mixins:[o],mounted:function(){for(var t=this.options,i=["attribution","token","detectRetina","opacity","zIndex"],s=0;s<i.length;s++){var o=i[s];void 0!==this[o]&&(t[o]=this[o])}var a=this.tileLayer||this.$leaflet().tileLayer;this.mapObject=a(this.url,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,ft),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setToken:function(t){this.options.token=t}}},"methods",{setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}}),F(pt,"beforeDestroy",function(){this.parentContainer.removeLayer(this)}),F(pt,"render",function(){return null}),pt),void 0,void 0),yt={content:{default:""},options:{type:Object,default:function(){return{}}}},bt={name:"LTooltip",props:yt,data:function(){return{}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().tooltip(this.options),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,yt),this.mapObject.setContent(this.content||this.$el),this.parentContainer=e(this.$parent),this.parentContainer.mapObject.bindTooltip(this.mapObject)},beforeDestroy:function(){this.parentContainer.mapObject.getTooltip()&&this.parentContainer.mapObject.unbindTooltip()}},gt=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};gt._withStripped=!0;var vt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LTooltip.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:gt,staticRenderFns:[]},0,bt,void 0,!1),Ot={baseUrl:String,layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},options:{type:Object,default:function(){return{}}},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},layerType:{type:String,default:void 0},name:{type:String,default:void 0},visible:{type:Boolean,custom:!0,default:!0}};var Lt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LWMSTileLayer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LWMSTileLayer",props:Ot,mixins:[o],mounted:function(){for(var t=this.options,i=["layers","styles","format","transparent","version","crs","upperCase","zIndex","opacity"],s=0;s<i.length;s++){var o=i[s];void 0!==this[o]&&(t[o]=this[o])}this.mapObject=this.$leaflet().tileLayer.wms(this.baseUrl,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,Ot),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:{setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}},beforeDestroy:function(){this.parentContainer.removeLayer(this)},render:function(){return null}},void 0,void 0);t.findRealParent=e,t.propsBinder=n,t.LCircle=f,t.LCircleMarker=g,t.LControlAttribution=O,t.LControlLayers=j,t.LControlScale=C,t.LControlZoom=A,t.LFeatureGroup=w,t.LGeoJson=V,t.LIconDefault=x,t.LImageOverlay=W,t.LLayerGroup=J,t.LMap=M,t.LMapSsr=G,t.LMarker=H,t.LPolygon=tt,t.LPolyline=st,t.LPopup=lt,t.LRectangle=ht,t.LTileLayer=mt,t.LTooltip=vt,t.LWMSTileLayer=Lt,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vue2Leaflet={})}(this,function(t){"use strict";var e=function(t){for(var e=!1;!e;)void 0==t.mapObject?t=t.$parent:e=!0;return t};var n=function(t,e,n,i){for(var s=Object.keys(n),o=function(){var i,o=s[a],r="set"+((i=o).charAt(0).toUpperCase()+i.slice(1)),l=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);n[o].custom?t.$watch(o,function(e,n){t[r](e,n)},{deep:l}):"setOptions"==r?t.$watch(o,function(n,i){t.$leaflet().setOptions(e,n)},{deep:l}):t.$watch(o,function(t,n){e[r](t)},{deep:l})},a=0;a<s.length;a++)o()},i="undefined"!=typeof window,s=i?window.L:null,o={methods:{$leaflet:function(){return s},$loadLeaflet:function(){return i&&!s&&(s=require("leaflet")),Promise.resolve(s)}}},a={latLng:{type:[Object,Array]},radius:{type:Number},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},r={name:"LCircle",props:a,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.radius&&(t.radius=this.radius),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var r=s[o];void 0!==this[r]&&(t[r]=this[r])}this.mapObject=this.$leaflet().circle(this.latLng,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,a),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})}}},l=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};l._withStripped=!0;var u,c,d,p,h,f=(u={render:l,staticRenderFns:[]},d=void 0,p=!1,(h=("function"==typeof(c=r)?c.options:c)||{}).__file="/Projects/Vue2Leaflet/src/components/LCircle.vue",h.render||(h.render=u.render,h.staticRenderFns=u.staticRenderFns,h._compiled=!0,p&&(h.functional=!0)),h._scopeId=d,h),m={latLng:{type:[Object,Array]},radius:{type:Number,default:10},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},y={name:"LCircleMarker",props:m,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.radius&&(t.radius=this.radius),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().circleMarker(this.latLng,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,m),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})}}},b=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};b._withStripped=!0;var g=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LCircleMarker.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:b,staticRenderFns:[]},0,y,void 0,!1),v={prefix:{type:String,default:"Leaflet"},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var O=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlAttribution.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlAttribution",props:v,mixins:[o],mounted:function(){for(var t=this.options,e=["prefix","position"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.attribution(t),n(this,this.mapObject,v),this.mapObject.addTo(this.$parent.mapObject)},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),L={collapsed:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},hideSingleBase:{type:Boolean,default:!1},sortLayers:{type:Boolean,default:!1},sortFunction:{type:Function,default:void 0},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var j=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlLayers.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlLayers",props:L,mixins:[o],mounted:function(){for(var t=this.options,e=["collapsed","autoZIndex","hideSingleBase","sortLayers","sortFunction"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.layers(null,null,t),n(this,this.mapObject,L),this.$parent.registerLayerControl(this)},methods:{addLayer:function(t){"base"==t.layerType?this.mapObject.addBaseLayer(t.mapObject,t.name):"overlay"==t.layerType&&this.mapObject.addOverlay(t.mapObject,t.name)},removeLayer:function(t){this.mapObject.removeLayer(t.mapObject)}},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),S={maxWidth:{type:Number,default:100},metric:{type:Boolean,default:!0},imperial:{type:Boolean,default:!0},updateWhenIdle:{type:Boolean,default:!1},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var C=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlScale.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlScale",props:S,mixins:[o],mounted:function(){for(var t=this.options,e=["maxWidth","metric","imperial","updateWhenIdle","position"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.scale(t),n(this,this.mapObject,S),this.mapObject.addTo(this.$parent.mapObject)},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),_={zoomInText:{type:String,default:"+"},zoomInTitle:{type:String,default:"Zoom in"},zoomOutText:{type:String,default:"-"},zoomOutTitle:{type:String,default:"Zoom out"},position:{type:String,default:"topright"},options:{type:Object,default:function(){return{}}}};var A=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LControlZoom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LControlZoom",props:_,mixins:[o],mounted:function(){for(var t=this.options,e=["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","position"],i=0;i<e.length;i++){var s=e[i];void 0!==this[s]&&(t[s]=this[s])}this.mapObject=this.$leaflet().control.zoom(t),n(this,this.mapObject,_),this.mapObject.addTo(this.$parent.mapObject)},beforeDestroy:function(){this.mapObject.remove()},render:function(){return null}},void 0,void 0),$={visible:{type:Boolean,custom:!0,default:!0}},R={name:"LFeatureGroup",props:$,data:function(){return{ready:!1}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().featureGroup(),n(this,this.mapObject,$),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=e(this.$parent),this.visible&&this.parentContainer.addLayer(this)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)},setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}}},B=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};B._withStripped=!0;var w=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LFeatureGroup.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:B,staticRenderFns:[]},0,R,void 0,!1);function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E={geojson:{type:[Object,Array],custom:!0,default:function(){return{}}},options:{type:Object,default:function(){return{}}},visible:{type:Boolean,custom:!0,default:!0}};var V=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LGeoJson.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LGeoJson",props:E,mixins:[o],mounted:function(){this.mapObject=this.$leaflet().geoJSON(this.geojson,this.options),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,E),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:F({setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setGeojson:function(t){this.mapObject.clearLayers(),this.mapObject.addData(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()},getBounds:function(){return this.mapObject.getBounds()}},"setVisible",function(t,e){t!==e&&(t?this.mapObject.addTo(this.parentContainer.mapObject):this.parentContainer.mapObject.removeLayer(this.mapObject))}),beforeDestroy:function(){this.parentContainer.mapObject.removeLayer(this.mapObject)},render:function(){return null}},void 0,void 0),N={imagePath:{type:String,custom:!0,default:""}};var x=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LIconDefault.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LIconDefault",props:N,mixins:[o],mounted:function(){this.$leaflet().Icon.Default.imagePath=this.imagePath,n(this,this.mapObject,N)},methods:{setImagePath:function(t,e){this.$leaflet().Icon.Default.imagePath=t}},render:function(){return null}},void 0,void 0),T={url:{type:String},bounds:{},opacity:{type:Number,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},visible:{type:Boolean,custom:!0,default:!0}};var W=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LImageOverlay.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LImageOverlay",props:T,mixins:[o],mounted:function(){var t={opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin};this.mapObject=this.$leaflet().imageOverlay(this.url,this.bounds,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,T),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:{setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},getBounds:function(){return this.mapObject.getBounds()}},beforeDestroy:function(){this.parentContainer.removeLayer(this)},render:function(){return null}},void 0,void 0),D={visible:{type:Boolean,custom:!0,default:!0}},P={name:"LLayerGroup",props:D,data:function(){return{ready:!1}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().layerGroup(),n(this,this.mapObject,D),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=e(this.$parent),this.visible&&this.parentContainer.addLayer(this)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)},setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}}},I=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};I._withStripped=!0;var J=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LLayerGroup.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:I,staticRenderFns:[]},0,P,void 0,!1),k=function(){return{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{custom:!0,default:void 0},maxBounds:{default:void 0},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:void 0},maxZoom:{type:Number,default:void 0},paddingBottomRight:{custom:!0,default:null},paddingTopLeft:{custom:!0,default:null},padding:{custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{custom:!0,default:function(){return null}},maxBoundsViscosity:{type:Number,default:0},options:{type:Object,default:function(){return{}}}}},Z={name:"LMap",props:k(),data:function(){return{ready:!1,movingRequest:0,lastSetCenter:void 0,lastSetBounds:void 0,layerControl:void 0,layersToAdd:[]}},mixins:[o],mounted:function(){var t=this,e=this.options;Object.assign(e,{minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs||this.$leaflet().CRS.EPSG3857}),null!=this.center&&(e.center=this.center),null!=this.zoom&&(e.zoom=this.zoom),this.mapObject=this.$leaflet().map(this.$el,e),this.setBounds(this.bounds),this.mapObject.on("moveend",function(){if(0==t.movingRequest){t.mapObject.getZoom()!=t.zoom&&t.$emit("update:zoom",t.mapObject.getZoom());var e=t.mapObject.getCenter();null!=t.center?Array.isArray(t.center)?(t.center[0]=e.lat,t.center[1]=e.lng):(t.center.lat=e.lat,t.center.lng=e.lng):t.$emit("update:center",e);var n=t.mapObject.getBounds();null!=t.bounds?Array.isArray(t.bounds)?Array.isArray(t.bounds[0])?(t.bounds[0][0]=n._southWest.lat,t.bounds[0][1]=n._southWest.lng,t.bounds[1][0]=n._northEast.lat,t.bounds[1][1]=n._northEast.lng):(t.bounds[0].lat=n._southWest.lat,t.bounds[0].lng=n._southWest.lng,t.bounds[1].lat=n._northEast.lat,t.bounds[1].lng=n._northEast.lng):(t.bounds._southWest.lat=n._southWest.lat,t.bounds._southWest.lng=n._southWest.lng,t.bounds._northEast.lat=n._northEast.lat,t.bounds._northEast.lng=n._northEast.lng):t.$emit("update:bounds",n)}else t.movingRequest-=1}),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,k()),this.ready=!0,this.$emit("mounted",this)},methods:{registerLayerControl:function(t){for(var e in this.layerControl=t,this.mapObject.addControl(t.mapObject),this.layersToAdd)this.layerControl.addLayer(e);this.layerToAdd=null},addLayer:function(t,e){void 0!==t.layerType&&(void 0==this.layerControl?this.layersToAdd.push(t):this.layerControl.addLayer(t)),e||this.mapObject.addLayer(t.mapObject)},removeLayer:function(t,e){void 0!==t.layerType&&(void 0==this.layerControl?this.layersToAdd=this.layerToAdd.filter(function(e){return e.name!==t.name}):this.layerControl.removeLayer(t)),e||this.mapObject.removeLayer(t.mapObject)},setZoom:function(t,e){this.movingRequest+=1,this.mapObject.setZoom(t)},setCenter:function(t,e){if(null!=t){var n=0,i=0;Array.isArray(t)?(n=t[0],i=t[1]):(n=t.lat,i=t.lng);var s=null==this.lastSetCenter?this.mapObject.getCenter():this.lastSetCenter;s.lat==n&&s.lng==i||(s.lat=t.lat,s.lng=t.lng,this.lastSetCenter=s,this.movingRequest+=1,this.mapObject.panTo(t))}},setBounds:function(t,e){if(t){if(t instanceof this.$leaflet().LatLngBounds){if(!t.isValid())return}else if(!Array.isArray(t))return;var n=null==this.lastSetBounds?this.mapObject.getBounds():this.lastSetBounds,i=0,s=0,o=0,a=0;Array.isArray(n)?(Array.isArray(n[0])?(i=n[0][0],s=n[0][1]):(i=n[0].lat,s=n[0].lng),Array.isArray(n[1])?(o=n[1][0],a=n[1][1]):(o=n[1].lat,a=n[1].lng)):(i=n._southWest.lat,s=n._southWest.lng,o=n._northEast.lat,a=n._northEast.lng);var r,l,u,c;if(Array.isArray(t)&&(t=this.$leaflet().latLngBounds(t)),r=t._southWest.lat,l=t._southWest.lng,u=t._northEast.lat,c=t._northEast.lng,r!=i||l!=s||u!=o||c!=a){var d={};this.padding?d.padding=this.padding:(this.paddingBottomRight&&(d.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(d.paddingTopLeft=this.paddingTopLeft)),this.lastSetBounds=n,Array.isArray(n)?(Array.isArray(n[0])?(n[0][0]=i,n[0][1]=s):(n[0].lat=i,n[0].lng=s),Array.isArray(n[1])?(n[1][0]=o,n[1][1]=a):(n[1].lat=o,n[1].lng=a)):(n._southWest.lat=i,n._southWest.lng=s,n._northEast.lat=o,n._northEast.lng=a),this.movingRequest+=1,this.mapObject.fitBounds(t,d)}}},setPaddingBottomRight:function(t,e){this.paddingBottomRight=t},setPaddingTopLeft:function(t,e){this.paddingTopLeft=t},setPadding:function(t,e){this.padding=t},setCrs:function(t,e){console.log("Changing CRS is not yet supported by Leaflet")},fitBounds:function(t){this.mapObject.fitBounds(t)}}},z=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"vue2leaflet-map"},[this.ready?this._t("default"):this._e()],2)};z._withStripped=!0;var M=function(t,e,n,i,s,o,a,r){var l,u=("function"==typeof n?n.options:n)||{};if(u.__file="/Projects/Vue2Leaflet/src/components/LMap.vue",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,s&&(u.functional=!0)),u._scopeId=i,e&&(l=function(t){e.call(this,a(t))}),void 0!==l)if(u.functional){var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return u}({render:z,staticRenderFns:[]},function(t){t&&t("data-v-6c2a18d6_0",{source:"\n.vue2leaflet-map {\n height: 100%;\n width: 100%;\n}\n",map:{version:3,sources:["/Projects/Vue2Leaflet/src/components/LMap.vue"],names:[],mappings:";AAiUA;EACA,aAAA;EACA,YAAA;CACA",file:"LMap.vue",sourcesContent:["<template>\n <div class=\"vue2leaflet-map\">\n <slot v-if=\"ready\"></slot>\n </div>\n</template>\n\n<script>\nimport { LeafletMixin } from '../utils/Leaflet';\nimport propsBinder from '../utils/propsBinder.js';\n\nexport const propsFactory = () => ({\n center: {\n type: [Object, Array],\n custom: true,\n default: () => [0, 0],\n },\n bounds: {\n custom: true,\n default: undefined,\n },\n maxBounds: {\n default: undefined,\n },\n zoom: {\n type: Number,\n custom: true,\n default: 0,\n },\n minZoom: {\n type: Number,\n default: undefined,\n },\n maxZoom: {\n type: Number,\n default: undefined,\n },\n paddingBottomRight: {\n custom: true,\n default: null,\n },\n paddingTopLeft: {\n custom: true,\n default: null\n },\n padding: {\n custom: true,\n default: null\n },\n worldCopyJump: {\n type: Boolean,\n default: false\n },\n crs: {\n custom: true,\n default: () => null,\n },\n maxBoundsViscosity: {\n type: Number,\n default: 0\n },\n options: {\n type: Object,\n default: () => ({}),\n },\n});\n\nexport default {\n name: 'LMap',\n props: propsFactory(),\n data() {\n return {\n ready: false,\n movingRequest: 0,\n lastSetCenter: undefined,\n lastSetBounds: undefined,\n layerControl: undefined,\n layersToAdd: []\n }\n },\n mixins: [\n LeafletMixin,\n ],\n mounted() {\n const options = this.options;\n Object.assign(options, {\n minZoom: this.minZoom,\n maxZoom: this.maxZoom,\n maxBounds: this.maxBounds,\n maxBoundsViscosity: this.maxBoundsViscosity,\n worldCopyJump: this.worldCopyJump,\n crs: this.crs || this.$leaflet().CRS.EPSG3857,\n });\n if (this.center != null) {\n options.center = this.center;\n }\n if (this.zoom != null) {\n options.zoom = this.zoom;\n }\n this.mapObject = this.$leaflet().map(this.$el, options);\n this.setBounds(this.bounds);\n this.mapObject.on('moveend', () => {\n if (this.movingRequest != 0) {\n this.movingRequest -= 1;\n return;\n }\n if (this.mapObject.getZoom() != this.zoom) {\n this.$emit('update:zoom', this.mapObject.getZoom());\n }\n let center = this.mapObject.getCenter();\n if (this.center != null) {\n if (Array.isArray(this.center)) {\n this.center[0] = center.lat;\n this.center[1] = center.lng;\n } else {\n this.center.lat = center.lat;\n this.center.lng = center.lng;\n }\n } else {\n this.$emit('update:center', center);\n }\n\n let bounds = this.mapObject.getBounds();\n if (this.bounds != null) {\n if (Array.isArray(this.bounds)) {\n if (Array.isArray(this.bounds[0])) {\n this.bounds[0][0] = bounds._southWest.lat;\n this.bounds[0][1] = bounds._southWest.lng;\n this.bounds[1][0] = bounds._northEast.lat;\n this.bounds[1][1] = bounds._northEast.lng;\n } else {\n this.bounds[0].lat = bounds._southWest.lat;\n this.bounds[0].lng = bounds._southWest.lng;\n this.bounds[1].lat = bounds._northEast.lat;\n this.bounds[1].lng = bounds._northEast.lng;\n }\n } else {\n this.bounds._southWest.lat = bounds._southWest.lat;\n this.bounds._southWest.lng = bounds._southWest.lng;\n this.bounds._northEast.lat = bounds._northEast.lat;\n this.bounds._northEast.lng = bounds._northEast.lng;\n }\n } else {\n this.$emit('update:bounds', bounds);\n }\n });\n this.$leaflet().DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, propsFactory());\n this.ready = true;\n this.$emit('mounted', this);\n },\n methods: {\n registerLayerControl(lControlLayers) {\n this.layerControl = lControlLayers;\n this.mapObject.addControl(lControlLayers.mapObject);\n for(var layer in this.layersToAdd) {\n this.layerControl.addLayer(layer);\n }\n this.layerToAdd = null;\n },\n addLayer(layer, alreadyAdded) {\n if (layer.layerType !== undefined) {\n if (this.layerControl == undefined) {\n this.layersToAdd.push(layer);\n } else {\n this.layerControl.addLayer(layer);\n }\n }\n if (!alreadyAdded) {\n this.mapObject.addLayer(layer.mapObject);\n }\n },\n removeLayer(layer, alreadyRemoved) {\n if (layer.layerType !== undefined) {\n if (this.layerControl == undefined) {\n this.layersToAdd = this.layerToAdd.filter((l) => l.name !== layer.name );\n } else {\n this.layerControl.removeLayer(layer);\n }\n }\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n },\n setZoom(newVal , oldVal) {\n this.movingRequest += 1;\n this.mapObject.setZoom(newVal);\n },\n setCenter(newVal, oldVal) {\n if (newVal == null) {\n return;\n }\n\n let newLat = 0;\n let newLng = 0;\n if (Array.isArray(newVal)) {\n newLat = newVal[0];\n newLng = newVal[1];\n } else {\n newLat = newVal.lat;\n newLng = newVal.lng;\n }\n let center = this.lastSetCenter == null ? this.mapObject.getCenter() : this.lastSetCenter;\n if (center.lat != newLat || center.lng != newLng) {\n center.lat = newVal.lat;\n center.lng = newVal.lng;\n this.lastSetCenter = center;\n this.movingRequest += 1;\n this.mapObject.panTo(newVal);\n }\n },\n setBounds(newVal, oldVal) {\n if (!newVal) {\n return;\n }\n if (newVal instanceof this.$leaflet().LatLngBounds) {\n if (!newVal.isValid()) {\n return;\n }\n } else if (!Array.isArray(newVal)) {\n return;\n }\n let bounds = this.lastSetBounds == null ? this.mapObject.getBounds() : this.lastSetBounds;\n let southWestLat = 0;\n let southWestLng = 0;\n let northEastLat = 0;\n let northEastLng = 0;\n if (Array.isArray(bounds)) {\n if (Array.isArray(bounds[0])) {\n southWestLat = bounds[0][0];\n southWestLng = bounds[0][1];\n } else {\n southWestLat = bounds[0].lat;\n southWestLng = bounds[0].lng;\n }\n if (Array.isArray(bounds[1])) {\n northEastLat = bounds[1][0];\n northEastLng = bounds[1][1];\n } else {\n northEastLat = bounds[1].lat;\n northEastLng = bounds[1].lng;\n }\n } else {\n southWestLat = bounds._southWest.lat;\n southWestLng = bounds._southWest.lng;\n northEastLat = bounds._northEast.lat;\n northEastLng = bounds._northEast.lng;\n }\n let southWestNewLat = 0;\n let southWestNewLng = 0;\n let northEastNewLat = 0;\n let northEastNewLng = 0;\n if (Array.isArray(newVal)) {\n newVal = this.$leaflet().latLngBounds(newVal);\n }\n southWestNewLat = newVal._southWest.lat;\n southWestNewLng = newVal._southWest.lng;\n northEastNewLat = newVal._northEast.lat;\n northEastNewLng = newVal._northEast.lng;\n let boundsChanged =\n (southWestNewLat != southWestLat) ||\n (southWestNewLng != southWestLng) ||\n (northEastNewLat != northEastLat) ||\n (northEastNewLng != northEastLng);\n if (boundsChanged) {\n var options = {};\n if (this.padding) {\n options.padding = this.padding;\n } else {\n if (this.paddingBottomRight) {\n options.paddingBottomRight = this.paddingBottomRight;\n }\n if (this.paddingTopLeft) {\n options.paddingTopLeft = this.paddingTopLeft;\n }\n }\n this.lastSetBounds = bounds;\n if (Array.isArray(bounds)) {\n if (Array.isArray(bounds[0])) {\n bounds[0][0] = southWestLat;\n bounds[0][1] = southWestLng;\n } else {\n bounds[0].lat = southWestLat;\n bounds[0].lng = southWestLng;\n }\n if (Array.isArray(bounds[1])) {\n bounds[1][0] = northEastLat;\n bounds[1][1] = northEastLng;\n } else {\n bounds[1].lat = northEastLat;\n bounds[1].lng = northEastLng;\n }\n } else {\n bounds._southWest.lat = southWestLat;\n bounds._southWest.lng = southWestLng;\n bounds._northEast.lat = northEastLat;\n bounds._northEast.lng = northEastLng;\n }\n this.movingRequest += 1;\n this.mapObject.fitBounds(newVal, options);\n }\n },\n setPaddingBottomRight(newVal, oldVal) {\n this.paddingBottomRight = newVal;\n },\n setPaddingTopLeft(newVal, oldVal) {\n this.paddingTopLeft = newVal;\n },\n setPadding(newVal, oldVal) {\n this.padding = newVal;\n },\n setCrs(newVal, oldVal) {\n console.log('Changing CRS is not yet supported by Leaflet');\n },\n fitBounds(bounds) {\n this.mapObject.fitBounds(bounds);\n }\n },\n}\n<\/script>\n\n<style type=\"text/css\">\n .vue2leaflet-map {\n height: 100%;\n width: 100%;\n }\n</style>\n"]},media:void 0})},Z,void 0,!1,0,function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),i="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,s){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var o=i?s.media||"default":t,a=n[o]||(n[o]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var r=s.source,l=a.ids.length;if(a.ids.push(t),i&&(a.element=a.element||document.querySelector("style[data-group="+o+"]")),!a.element){var u=a.element=document.createElement("style");u.type="text/css",s.media&&u.setAttribute("media",s.media),i&&(u.setAttribute("data-group",o),u.setAttribute("data-next-index","0")),e.appendChild(u)}if(i&&(l=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",l+1)),a.element.styleSheet)a.parts.push(r),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(r),d=a.element.childNodes;d[l]&&a.element.removeChild(d[l]),d.length?a.element.insertBefore(c,d[l]):a.element.appendChild(c)}}}}});var G=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LMapSsr.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{render:function(t){var e=[];if(this.isMounted){var n=t(M,{props:this.$options.propsData,on:this.$listeners},[this.$slots.default]);e.push(n)}return t("div",{class:["vue2leaflet-map-ssr"]},e)},props:k(),components:{LMap:M},mixins:[o],data:function(){return{isMounted:!1}},mounted:function(){return new Promise(function(t,e){var n;return Promise.resolve(this.$loadLeaflet()).then(function(i){try{return n=i,this.$emit("load",n),this.isMounted=!0,t()}catch(t){return e(t)}}.bind(this),e)}.bind(this))}},void 0,void 0),q={draggable:{type:Boolean,custom:!0,default:!1},visible:{type:Boolean,custom:!0,default:!0},latLng:{type:[Object,Array],custom:!0},icon:{type:Object,custom:!0,default:null},zIndexOffset:{type:Number,custom:!1},options:{type:Object,default:function(){return{}}}},U={name:"LMarker",props:q,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t=this,i=this.options;if(null!==this.icon){var s=this.$leaflet().Icon;i.icon=new s(this.icon)}i.draggable=this.draggable,this.mapObject=this.$leaflet().marker(this.latLng,i),this.mapObject.on("move",function(e){Array.isArray(t.latLng)?(t.latLng[0]=e.latlng.lat,t.latLng[1]=e.latlng.lng):(t.latLng.lat=e.latlng.lat,t.latLng.lng=e.latlng.lng)}),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,q),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setDraggable:function(t,e){this.mapObject.dragging&&(t?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setIcon:function(t){if(null!==t){var e=this.$leaflet().Icon;this.mapObject.setIcon(new e(t))}},setLatLng:function(t){if(null!=t&&this.mapObject){var e=this.mapObject.getLatLng(),n={lat:t[0]||t.lat,lng:t[1]||t.lng};n.lat==e.lat&&n.lng==e.lng||this.mapObject.setLatLng(n)}}}},Y=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};Y._withStripped=!0;var H=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LMarker.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:Y,staticRenderFns:[]},0,U,void 0,!1),K={latLngs:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},Q={name:"LPolygon",props:K,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().polygon(this.latLngs,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,K),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setSmoothFactor:function(t,e){t!=e&&t&&this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t,e){t!=e&&t&&this.mapObject.setStyle({noClip:t})},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})},addLatLng:function(t){this.mapObject.addLatLng(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},X=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};X._withStripped=!0;var tt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LPolygon.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:X,staticRenderFns:[]},0,Q,void 0,!1),et={latLngs:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},nt={name:"LPolyline",props:et,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().polyline(this.latLngs,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,et),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setSmoothFactor:function(t,e){t!=e&&t&&this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t,e){t!=e&&t&&this.mapObject.setStyle({noClip:t})},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},it=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};it._withStripped=!0;var st=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LPolyline.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:it,staticRenderFns:[]},0,nt,void 0,!1),ot={content:{default:""},latLng:{type:[Object,Array]},options:{type:Object,default:function(){return{}}}},at={name:"LPopup",props:ot,data:function(){return{ready:!1}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().popup(this.options),void 0!==this.latLng&&this.mapObject.setLatLng(this.latLng),this.mapObject.setContent(this.content||this.$el),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,ot),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.mapObject.bindPopup(this.mapObject)},beforeDestroy:function(){this.parentContainer.mapObject&&this.parentContainer.mapObject.getPopup()&&this.parentContainer.mapObject.unbindPopup()}},rt=function(){var t=this.$createElement;return(this._self._c||t)("div",[this.ready?this._t("default"):this._e()],2)};rt._withStripped=!0;var lt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LPopup.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:rt,staticRenderFns:[]},0,at,void 0,!1),ut={bounds:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},ct={name:"LRectangle",props:ut,data:function(){return{ready:!1}},mixins:[o],mounted:function(){var t={};if(this.color&&(t.color=this.color),this.lStyle)for(var i in this.lStyle)t[i]=this.lStyle[i];for(var s=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],o=0;o<s.length;o++){var a=s[o];void 0!==this[a]&&(t[a]=this[a])}this.mapObject=this.$leaflet().rectangle(this.bounds,t),this.ready=!0,this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,ut),this.ready=!0,this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{setVisible:function(t,e){t!=e&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))},setLStyle:function(t,e){t!=e&&this.mapObject.setStyle(t)},setStroke:function(t,e){t!=e&&this.mapObject.setStyle({stroke:t})},setColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({color:t})},setWeight:function(t,e){t!=e&&t&&this.mapObject.setStyle({weight:t})},setOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({opacity:t})},setLineCap:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t,e){t!=e&&t&&this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t,e){t!=e&&t&&this.mapObject.setStyle({dashOffset:t})},setFill:function(t,e){t!=e&&this.mapObject.setStyle({fill:t})},setFillColor:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t,e){t!=e&&t&&this.mapObject.setStyle({fillRule:t})},setClassName:function(t,e){t!=e&&t&&this.mapObject.setStyle({className:t})}}},dt=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{display:"none"}},[this.ready?this._t("default"):this._e()],2)};dt._withStripped=!0;var pt,ht=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LRectangle.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:dt,staticRenderFns:[]},0,ct,void 0,!1),ft={url:String,attribution:{type:String,custom:!0},detectRetina:{type:Boolean,custom:!1,default:!1},token:{type:String,custom:!0},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},options:{type:Object,default:function(){return{}}},tms:{type:Boolean,default:!1},tileLayerClass:{type:Function,default:void 0},layerType:{type:String,default:void 0},name:{type:String,default:void 0},visible:{type:Boolean,custom:!0,default:!0}};var mt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LTileLayer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,(F(pt={name:"LTileLayer",props:ft,mixins:[o],mounted:function(){for(var t=this.options,i=["attribution","token","detectRetina","opacity","zIndex"],s=0;s<i.length;s++){var o=i[s];void 0!==this[o]&&(t[o]=this[o])}var a=this.tileLayer||this.$leaflet().tileLayer;this.mapObject=a(this.url,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,ft),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setToken:function(t){this.options.token=t}}},"methods",{setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}}),F(pt,"beforeDestroy",function(){this.parentContainer.removeLayer(this)}),F(pt,"render",function(){return null}),pt),void 0,void 0),yt={content:{default:""},options:{type:Object,default:function(){return{}}}},bt={name:"LTooltip",props:yt,data:function(){return{}},mixins:[o],mounted:function(){this.mapObject=this.$leaflet().tooltip(this.options),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,yt),this.mapObject.setContent(this.content||this.$el),this.parentContainer=e(this.$parent),this.parentContainer.mapObject.bindTooltip(this.mapObject)},beforeDestroy:function(){this.parentContainer.mapObject.getTooltip()&&this.parentContainer.mapObject.unbindTooltip()}},gt=function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)};gt._withStripped=!0;var vt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LTooltip.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({render:gt,staticRenderFns:[]},0,bt,void 0,!1),Ot={baseUrl:String,layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},options:{type:Object,default:function(){return{}}},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},layerType:{type:String,default:void 0},name:{type:String,default:void 0},visible:{type:Boolean,custom:!0,default:!0}};var Lt=function(t,e,n,i,s,o,a,r){var l=("function"==typeof n?n.options:n)||{};return l.__file="/Projects/Vue2Leaflet/src/components/LWMSTileLayer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,s&&(l.functional=!0)),l._scopeId=i,l}({},0,{name:"LWMSTileLayer",props:Ot,mixins:[o],mounted:function(){for(var t=this.options,i=["layers","styles","format","transparent","version","crs","upperCase","zIndex","opacity"],s=0;s<i.length;s++){var o=i[s];void 0!==this[o]&&(t[o]=this[o])}this.mapObject=this.$leaflet().tileLayer.wms(this.baseUrl,t),this.$leaflet().DomEvent.on(this.mapObject,this.$listeners),n(this,this.mapObject,Ot),this.parentContainer=e(this.$parent),this.parentContainer.addLayer(this,!this.visible)},methods:{setVisible:function(t,e){t!=e&&this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.removeLayer(this))}},beforeDestroy:function(){this.parentContainer.removeLayer(this)},render:function(){return null}},void 0,void 0);t.findRealParent=e,t.propsBinder=n,t.LCircle=f,t.LCircleMarker=g,t.LControlAttribution=O,t.LControlLayers=j,t.LControlScale=C,t.LControlZoom=A,t.LFeatureGroup=w,t.LGeoJson=V,t.LIconDefault=x,t.LImageOverlay=W,t.LLayerGroup=J,t.LMap=M,t.LMapSsr=G,t.LMarker=H,t.LPolygon=tt,t.LPolyline=st,t.LPopup=lt,t.LRectangle=ht,t.LTileLayer=mt,t.LTooltip=vt,t.LWMSTileLayer=Lt,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vue2-leaflet.min.js.map
{
"name": "@alibaba-aero/vue2-leaflet",
"version": "2.0.4",
"version": "2.0.5",
"description": "Vue2 leaflet library",

@@ -5,0 +5,0 @@ "author": "Mickael Bouchaud",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc