(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["mbmp_pvm_EsriDynamicMapLayer"],{"26ef":function(e,t,n){"use strict";var a=n("59f3"),i=n.n(a);i.a},"2cdc":function(e,t,n){"use strict";n("d81d");var a,i,o,l=n("e11e"),r={name:"OpacitySlider",props:["layer","position","initialOpacity"],created:function(){var e=100*this.$props.initialOpacity;l["Control"].opacitySlider=l["Control"].extend({options:{position:"topright"},setOpacityLayer:function(e){a=e},onAdd:function(t){var n=l["DomUtil"].create("div","opacity_slider_control");return $(n).slider({orientation:"vertical",range:"min",min:0,max:100,value:e,step:10,start:function(e,n){t.dragging.disable(),t.once("mousedown",(function(e){t.dragging.enable()}))},slide:function(e,t){var n=t.value/100;a.setOpacity(n)}}),$(n).click((function(e){e.stopPropagation()})),n}})},mounted:function(){var e=this.$leafletElement=this.createLeafletElement(),t=this.$store.state.map;t&&this.$nextTick((function(){e.addTo(t.map)}))},destroyed:function(){this.$leafletElement._map.removeControl(this.$leafletElement)},methods:{createLeafletElement:function(){var e=new l["Control"].opacitySlider;return e.setPosition(this.$props.position),e.setOpacityLayer(this.$props.layer),e},parentMounted:function(e){var t=e.$leafletElement;t.addControl(this.$leafletElement)}},render:function(e){}},s=r,c=(n("26ef"),n("2877")),p=Object(c["a"])(s,i,o,!1,null,null,null);t["a"]=p.exports},"59f3":function(e,t,n){},"71dd":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("opacity-slider",{attrs:{layer:this.$leafletElement,position:"topleft","initial-opacity":e.opacity}})},i=[],o=(n("d81d"),n("3023")),l=n("2cdc"),r={name:"EsriDynamicMapLayer",components:{OpacitySlider:l["a"]},props:{url:{},minZoom:{},maxZoom:{},zIndex:{},opacity:{default:1},layers:{},layerDefs:{},transparent:{}},computed:{},created:function(){var e=this.$leafletElement=this.createLeafletElement(),t=this.$store.state.map.map;t&&e.addTo(t)},destroyed:function(){this.$leafletElement._map.removeLayer(this.$leafletElement)},methods:{createLeafletElement:function(){var e=Object.assign({},this.$props);return new o["a"](e)},parentMounted:function(e){var t=e.$leafletElement;this.$leafletElement.addTo(t)}}},s=r,c=n("2877"),p=Object(c["a"])(s,a,i,!1,null,null,null);t["default"]=p.exports}}]);
//# sourceMappingURL=mbmp_pvm_EsriDynamicMapLayer.264a58a7.js.map