(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["mbmp_pvm_VectorMarker"],{"0665":function(e,t,n){!function(t,o){e.exports=o(n("e11e"))}(0,(function(e){"use strict";var t={iconSize:[100,100],iconAnchor:[50,50],popupAnchor:[2,-40],shadowAnchor:[39,45],shadowSize:[54,51],className:"vector-marker",prefix:"fa",spinClass:"fa-spin",extraIconClasses:"",extraDivClasses:"",icon:"home",markerColor:"red",iconColor:"white",viewBox:"0 0 32 52"};return function(n){function o(o){if(o.icon.size){var a=o.icon.size;o.iconSize=[2*a,2*a],o.iconAnchor=[a,a]}else o.icon.size=50;n.call(this,o),e.Util.setOptions(this,t),e.Util.setOptions(this,o)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createIcon=function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options,o=n.icon;return t.innerHTML='<i class="'+o.prefix+" fa-"+o.icon+'" style="color:'+n.markerColor+"; width: "+o.size+"px; height: "+o.size+'px"></i>',n.className+=n.className.length>0?" "+n.extraDivClasses:n.extraDivClasses,this._setIconStyles(t,"icon"),this._setIconStyles(t,"icon-"+n.markerColor),t},o.prototype.createShadow=function(){if(1==this.options.icon.shadow){var e=document.createElement("div");return this._setIconStyles(e,"shadow"),e}},o.prototype._setIconStyles=function(e,t){var n,o,a=this.options;"shadow"===t?(n=a.shadowSize,o=a.shadowAnchor||a.iconAnchor):(n=a.iconSize,o=a.iconAnchor),!o&&n&&(o=n.map((function(e){return e/2}))),e.className="vector-marker-"+t+" "+a.className,o&&(e.style.marginLeft=-o[0]+"px",e.style.marginTop=-o[1]+"px"),n&&(e.style.width=n[0]+"px",e.style.height=n[1]+"px")},o}(e.Icon)}))},"37cc":function(e,t,n){},"82eb":function(e,t,n){"use strict";var o=n("eeff"),a=n.n(o);a.a},9955:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default")],2)},a=[],s=(n("d81d"),n("15fd")),i=n("e11e"),r=n("0665"),l=n.n(r),c=(n("37cc"),n("e38d")),h={name:"VectorMarker",props:["latlng","markerColor","icon","data"],watch:{markerColor:function(e,t){this.$leafletElement._map.removeLayer(this.$leafletElement);var n=this.$leafletElement=this.createLeafletElement(),o=this.$store.state.map.map;o&&n.addTo(o),Object(c["a"])(this,this.$leafletElement,this._events)},latlng:function(e,t){this.$leafletElement._map.removeLayer(this.$leafletElement);var n=this.$leafletElement=this.createLeafletElement(),o=this.$store.state.map.map;o&&n.addTo(o),Object(c["a"])(this,this.$leafletElement,this._events)}},mounted:function(){var e=this.$leafletElement=this.createLeafletElement(),t=this.$store.state.map.map;t&&e.addTo(t),Object(c["a"])(this,this.$leafletElement,this._events)},destroyed:function(){this.$leafletElement._map.removeLayer(this.$leafletElement)},methods:{createLeafletElement:function(){var e=this.$props,t=(e.latlng,Object(s["a"])(e,["latlng"]));return t.icon=new l.a({icon:this.$props.icon||"circle",markerColor:this.$props.markerColor||"#2176d2"}),new i["Marker"](this.latlng,t)},parentMounted:function(e){var t=e.$leafletElement;this.$leafletElement.addTo(t)}}},m=h,p=(n("82eb"),n("2877")),f=Object(p["a"])(m,o,a,!1,null,"4c7ee0a1",null);t["default"]=f.exports},eeff:function(e,t,n){}}]);
//# sourceMappingURL=mbmp_pvm_VectorMarker.4a3c3dbe.js.map