(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["mbmb_pvm_PictometryPngMarker"],{"7d8c":function(t,e,r){"use strict";r.r(e);var o,s,i={name:"PictometryPngMarker",props:["icon","latlng","height","width"],computed:{ipa:function(){return this.$store.state.pictometry.ipa}},watch:{latlng:function(t){this.ipa.removeShapes(this.$store.state.pictometry.pngMarkerIds),this.placeMarker(t)}},mounted:function(){this.placeMarker(this.$props.latlng)},beforeDestroy:function(){this.ipa.removeShapes(this.$store.state.pictometry.pngMarkerIds)},methods:{constructLocalUrl:function(t,e,r){var o;return o="https:"===window.location.protocol?"https://"+t+e+r:"http://"+t+e+r,o},placeMarker:function(t){var e,r=window.location.port;e=""!=r?window.location.hostname+":"+r:window.location.hostname;var o={type:this.ipa.SHAPE_TYPE.MARKER,center:{y:t[0],x:t[1]},markerImageHeight:this.$props.height,markerImageWidth:this.$props.width,markerOffsetX:this.$props.offsetX,markerOffsetY:this.$props.offsetY,markerImage:this.constructLocalUrl(e,"/",this.$props.icon),onShapeClick:"true"};this.ipa.addShapes([o],this.didAddShapes)},didAddShapes:function(t){for(var e=0;e<t.length;e++)if("false"===t[e].success)console.log(t[e].error);else{var r=this.$store.state.pictometry.pngMarkerIds;r.push(t[e].shapeId)}}},render:function(t){}},a=i,n=r("2877"),p=Object(n["a"])(a,o,s,!1,null,null,null);e["default"]=p.exports}}]);
//# sourceMappingURL=mbmb_pvm_PictometryPngMarker.c607348b.js.map