(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["mbmp_pvm_PngMarker"],{"2f48":function(t,e,n){"use strict";n.r(e);n("d81d");var o,i,a=n("e11e"),l={name:"PngMarker",props:["icon","latlng","rotationAngle"],watch:{rotationAngle:function(t){if(this.latlng){this.$leafletElement&&this.$leafletElement._map&&(console.log("pngMarker orientation changed",t),this.$leafletElement._map.removeLayer(this.$leafletElement));var e=this.$leafletElement=this.createLeafletElement(),n=this.$store.state.map.map;n&&e.addTo(n)}},latlng:function(t){this.$leafletElement&&this.$leafletElement._map&&this.$leafletElement._map.removeLayer(this.$leafletElement);var e=this.$leafletElement=this.createLeafletElement(),n=this.$store.state.map.map;n&&e.addTo(n)}},mounted:function(){var t=a["Marker"].prototype._initIcon,e=a["Marker"].prototype._setPos,n="msTransform"===a["DomUtil"].TRANSFORM;if(a["Marker"].addInitHook((function(){var t=this.options.icon&&this.options.icon.options,e=t&&this.options.icon.options.iconAnchor;e&&(e=e[0]+"px "+e[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||e||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",(function(t){t.target._applyRotation()}))})),a["Marker"].include({_initIcon:function(){t.call(this)},_setPos:function(t){e.call(this,t),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[a["DomUtil"].TRANSFORM+"Origin"]=this.options.rotationOrigin,n?this._icon.style[a["DomUtil"].TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[a["DomUtil"].TRANSFORM]+=" rotate("+this.options.rotationAngle+"deg)")},setRotationAngle:function(t){return this.options.rotationAngle=t,this.update(),this},setRotationOrigin:function(t){return this.options.rotationOrigin=t,this.update(),this}}),this.latlng){var o=this.$leafletElement=this.createLeafletElement(),i=this.$store.state.map.map;i&&o.addTo(i)}},destroyed:function(){this.$leafletElement._map.removeLayer(this.$leafletElement)},methods:{createLeafletElement:function(){var t=a["icon"]({iconUrl:this.icon,iconSize:[26,16],iconAnchor:[11,8]});return a["marker"](this.latlng,{icon:t,rotationAngle:this.rotationAngle})},parentMounted:function(t){var e=t.$leafletElement;this.$leafletElement.addTo(e)}},render:function(t){}},s=l,r=n("2877"),h=Object(r["a"])(s,o,i,!1,null,null,null);e["default"]=h.exports}}]);
//# sourceMappingURL=mbmp_pvm_PngMarker.4c06f910.js.map