(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pvm_MglNavigationControl"],{"81e1":function(t,o,e){"use strict";o["a"]={methods:{$_emitSelfEvent(t,o={}){this.$_emitMapEvent(t,{control:this.control,...o})},$_bindSelfEvents(t,o){Object.keys(this.$listeners).forEach(e=>{t.includes(e)&&o.on(e,this.$_emitSelfEvent)})},$_unbindSelfEvents(t,o){0!==t.length&&o&&t.forEach(t=>{o.off(t,this.$_emitSelfEvent)})}}}},"9d95":function(t,o,e){"use strict";e.r(o);var i=e("aa65");o["default"]={name:"NavigationControl",mixins:[i["a"]],props:{showCompass:{type:Boolean,default:!0},showZoom:{type:Boolean,default:!0}},created(){this.control=new this.mapbox.NavigationControl(this.$props),this.$_addControl()}}},"9f0b":function(t,o,e){"use strict";o["a"]={methods:{$_emitEvent(t,o={}){this.$emit(t,{map:this.map,component:this,...o})},$_emitMapEvent(t,o={}){this.$_emitEvent(t.type,{mapboxEvent:t,...o})}}}},aa65:function(t,o,e){"use strict";var i=e("9f0b"),n=e("81e1");o["a"]={mixins:[i["a"],n["a"]],inject:["mapbox","map","actions"],props:{position:{type:String,default:"top-right"}},beforeDestroy(){this.map&&this.control&&this.map.removeControl(this.control)},methods:{$_addControl(){try{this.map.addControl(this.control,this.position)}catch(t){return void this.$_emitEvent("error",{error:t})}this.$_emitEvent("added",{control:this.control})}},render(){}}}}]);
//# sourceMappingURL=pvm_MglNavigationControl.06910edd.js.map