UNPKG

@vue-map/google

Version:
2 lines 22.9 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("VueMap",["vue"],e):"object"==typeof exports?exports.VueMap=e(require("vue")):t.VueMap=e(t.Vue)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=14)}([function(t,e,n){"use strict";function o(t){return Array.isArray(t)?new google.maps.Point(t[0],t[1]):t}function r(t){return Array.isArray(t)?new google.maps.Size(t[0],t[1]):t}function i(t){return Array.isArray(t)?new google.maps.LatLng(t[1],t[0]):t}function a(t){if(t)return Array.isArray(t)?t.slice():[t.lng(),t.lat()]}function s(t){return Array.isArray(t)?new google.maps.LatLngBounds(i(t[0]),i(t[1])):t}function u(t){return[a(t.getSouthWest()),a(t.getNorthEast())]}function c(t){var e=t;if("string"==typeof t)e={url:t};else if(t.image){var n=t.size,i=t.imageOffset,a=t.image,s=t.imageSize;e={url:a,size:r(n),origin:o(i),scaledSize:r(s)}}return e}function l(t){return google.maps.ControlPosition[t]}e.g=o,e.h=r,e.f=i,e.c=a,e.a=u,e.e=c,e.d=l,n.d(e,"b",function(){return p});var p={position:i,offset:o,bounds:s,LngLat:i,Pixel:o,Point:o,Size:r,Bounds:s,icon:c,ControlPosition:l}},function(t,e,n){"use strict";var o=n(23),r=n.n(o),i=n(0),a=n(25),s=n(7),u=n(4);e.a={data:function(){return{unwatchFns:[]}},mounted:function(){var t=this;this.$map=this.$map||this.$parent.$map,this.$map?this.register():this.$on(s.a.MAP_READY_EVENT,function(e){t.$map=e,t.register()})},destroyed:function(){this.unregisterEvents(),this.$mapComponent&&(this.$mapComponent.setMap&&this.$mapComponent.setMap(null),this.$mapComponent.close&&this.$mapComponent.close(),this.events&&this.events.destroyed&&this.events.destroyed.call(this,this.$mapComponent,this),this.unwatchFns.forEach(function(t){return t()}),this.unwatchFns=[])},methods:{getHandlerFun:function(t){return this.handlers&&this.handlers[t]?this.handlers[t]:this.$mapComponent["set"+r()(t)]||this.$mapComponent.setOptions},convertProps:function(){var t=this,e={};this.$map&&(e.map=this.$map);var n=this.$options.propsData,o=void 0===n?{}:n,r=this.propsRedirect;return Object.keys(o).reduce(function(n,o){var i=o,a=t.convertSignalProp(i,t[i]);return void 0===a?n:(r&&r[o]&&(i=r[i]),e[i]=a,n)},e)},convertSignalProp:function(t,e){var n="",o="";if(this.mapTagName)try{var r=this.mapTagName;o=(u.default[r]||"").props[t].$type,n=i.b[o]}catch(t){}if(o&&n)return n(e);if(this.converters&&this.converters[t])return this.converters[t].call(this,e);var a=i.b[t];return a?a(e):e},registerEvents:function(){var t=this;if(this.$options.propsData){if(this.$options.propsData.events){for(var e in this.events)!function(e){a.a.addListener(t.$mapComponent,e,function(n){t.events[e].call(t,n,t)})}(e)}if(this.$options.propsData.onceEvents){for(var e in this.onceEvents)!function(e){a.a.addListenerOnce(t.$mapComponent,e,function(n){t.onceEvents[e].call(t,n,t)})}(e)}}},unregisterEvents:function(){a.a.clearListeners(this.$mapComponent)},setPropWatchers:function(){var t=this,e=this.propsRedirect,n=this.$options.propsData,o=void 0===n?{}:n;Object.keys(o).forEach(function(n){var o=n;e&&e[n]&&(o=e[n]);var r=t.getHandlerFun(o);if(r||"events"===n){var i=t.$watch(n,function(e){if("events"===n)return t.unregisterEvents(),void t.registerEvents();if(r&&r===t.$mapComponent.setOptions){var i;return r.call(t.$mapComponent,(i={},i[o]=t.convertSignalProp(n,e),i))}r.call(t.$mapComponent,t.convertSignalProp(n,e))});t.unwatchFns.push(i)}})},registerToManager:function(){var t=this.mapManager||this.$parent.mapManager;t&&void 0!==this.vid&&t.setComponent(this.vid,this.$mapComponent)},initProps:function(){var t=this;["zooms","bounds"].forEach(function(e){if(void 0!==t[e]){var n=t.getHandlerFun(e);n&&n.call(t.$mapComponent,t.convertSignalProp(e,t[e]))}})},printReactiveProp:function(){var t=this;Object.keys(this._props).forEach(function(e){t.$mapComponent["set"+r()(e)]&&console.log(t.$options.name,e)})},register:function(){var t=this,e=this.__initComponent&&this.__initComponent(this.convertProps());e&&e.then?e.then(function(e){return t.registerRest(e)}):this.registerRest(e)},registerRest:function(t){!this.$mapComponent&&t&&(this.$mapComponent=t),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init.call(this,this.$mapComponent,this)},$$getInstance:function(){return this.$mapComponent}}}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId=i);var l;if(a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var p=c.render;c.render=function(t,e){return l.call(e),p(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:c}}e.a=o},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var o=n(15),r=n(5),i=n.n(r),a=null,s=function(t){i.a.prototype.$isServer||a||(a||(a=new o.a(t)),a.load())}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(16),i=n(27),a=n(28),s=n(29),u=n(30),c=n(31),l=n(32),p=n(33);n.d(e,"MapManager",function(){return p.a}),n.d(e,"initMapApiLoader",function(){return o.a}),n.d(e,"lazyMapApiLoaderInstance",function(){return o.b});var f=[r.a,i.a,a.a,s.a,u.a,c.a,l.a],d={initMapApiLoader:o.a,MapManager:p.a};d.install=function(t){d.installed||(t.config.optionMergeStrategies.deferredReady=t.config.optionMergeStrategies.created,f.map(function(e){t.component(e.name,e),d[e.name]=e}))};"undefined"!=typeof window&&window.Vue&&function t(e){t.installed||d.install(e)}(window.Vue),e.default=d},function(e,n){e.exports=t},function(t,e,n){"use strict";var o=n(22),r=n(7),i=n(0),a=n(1),s=n(3),u=function(t){return-1!==["BOTTOM_CENTER","BOTTOM_LEFT","BOTTOM_RIGHT","LEFT_BOTTOM","LEFT_CENTER","LEFT_TOP","RIGHT_BOTTOM","RIGHT_CENTER","RIGHT_TOP","TOP_CENTER","TOP_LEFT","TOP_RIGHT"].indexOf(t)};e.a={name:"VueMap",mixins:[a.a],props:{vid:String,backgroundColor:String,center:[Array,Object],clickableIcons:Boolean,controlSize:Number,disableDefaultUi:Boolean,disableDoubleClickZoom:Boolean,draggable:Boolean,dragEnable:Boolean,draggableCursor:String,draggingCursor:String,fullscreenControl:Boolean,fullscreenControlPosition:{type:String,validator:u},fullscreenControlOptions:Object,gestureHandling:{type:String,validator:function(t){return-1!==["cooperative","greedy","none","auto"].indexOf(t)}},heading:Number,keyboardShortcuts:Boolean,mapTypeControl:Boolean,mapTypeControlOptions:Object,mapTypeId:{type:String,validator:function(t){return-1!==["hybrid","roadmap","satellite","terrain"].indexOf(t)}},zoom:Number,zooms:[Number,Number],noClear:Boolean,panControl:Boolean,panControlOptions:Object,restriction:Object,rotateControl:Boolean,rotateEnable:Boolean,rotateControlPosition:{type:String,validator:u},rotateControlOptions:Object,scaleControl:Boolean,scaleControlOptions:Object,scrollwheel:Boolean,scrollWheel:Boolean,streetView:Object,streetViewControl:Boolean,styles:Array,tilt:Number,zoomControl:Boolean,zoomEnable:Boolean,zoomControlOptions:Object,events:Object,mapManager:Object,bounds:Array},beforeCreate:function(){this._loadPromise=s.b.load()},data:function(){return{mapTagName:"VueMap",propsRedirect:{scrollWheel:"scrollwheel",zoomEnable:"zoomControl",dragEnable:"draggable",rotateEnable:"rotateControl",fullscreenControlPosition:"fullscreenControlOptions",rotateControlPosition:"rotateControlOptions",disableDefaultUi:"disableDefaultUI"},converters:{center:function(t){return Object(i.f)(t)},fullscreenControlPosition:function(t){return{position:Object(i.d)(t)}},rotateControlPosition:function(t){return{position:Object(i.d)(t)}}},handlers:{zooms:function(t){this.setOptions({minZoom:t[0],maxZoom:t[1]})},bounds:function(t){t&&this.fitBounds(t)}}}},mounted:function(){this.createMap()},methods:{createMap:function(){var t=this;this._loadPromise.then(function(){var e=t.$el.querySelector(".vue-map"),n=t.vid||Object(o.a)();e.id=n;var i=t.convertProps();i.clickableIcons=i.clickableIcons||!1,t.$map=t.$mapComponent=new google.maps.Map(e,i),t.mapManager&&t.mapManager.setMap(t.$map),t.$emit(r.a.MAP_READY_EVENT,t.$map),t.$children.forEach(function(e){e.$emit(r.a.MAP_READY_EVENT,t.$map)})})},$$getCenter:function(){return this.$map?Object(i.c)(this.$map.getCenter()):Object(i.c)(this.center)},$$getZoom:function(){return this.$map?this.$map.getZoom():0}}}},function(t,e,n){"use strict";e.a={MAP_READY_EVENT:"MAP_READY_EVENT"}},function(t,e,n){"use strict";var o=n(1),r=n(0);e.a={name:"VueMapMarker",mixins:[o.a],props:["vid","position","icon","animation","cursor","draggable","label","visible","zIndex","opacity","offset","events","clickable"],data:function(){return{converters:{icon:function(t){var e=Object(r.e)(t);return!e.anchor&&this.offset&&(e.anchor=Object(r.g)(this.offset)),e}},handlers:{offset:function(t){if(t){var e=this.getIcon();e.anchor=Object(r.g)(t),this.setIcon(e)}}}}},methods:{__initComponent:function(t){this.$mapComponent=new google.maps.Marker(t)},$$getPosition:function(){return Object(r.c)(this.$mapComponent.getPosition())}},render:function(){return null}}},function(t,e,n){"use strict";var o=n(1),r=n(5),i=n.n(r),a=n(0);e.a={name:"VueMapInfoWindow",mixins:[o.a],props:["vid","autoMove","offset","position","zIndex","visible","events"],data:function(){var t=this;return{listeners:[],tmpVm:null,propsRedirect:{autoMove:"disableAutoPan",offset:"pixelOffset"},converters:{autoMove:function(t){return!t},offset:function(t){return Object(a.h)(t)}},handlers:{visible:function(e){!1===e?this.close():this.open(t.$map)}}}},created:function(){var t=this.$i18n;this.tmpVm=new i.a({i18n:t,data:function(){return{node:""}},render:function(t){var e=this.node;return t("div",{ref:"node"},Array.isArray(e)?e:[e])}}).$mount()},destroyed:function(){this.$mapComponent.close(),this.tmpVm.$destroy()},methods:{__initComponent:function(t){this.$slots.default&&this.$slots.default.length&&(t.content=this.tmpVm.$refs.node),delete t.map,this.$mapComponent=new google.maps.InfoWindow(t),this.addInnerEvents(),!1!==this.visible&&this.$mapComponent.open(this.$map)},addInnerEvents:function(){var t=this;this.listeners.push(this.$mapComponent.addListener("closeclick",function(){t.$emit("update:visible",!1)}))},removeInnerEvents:function(){this.listeners.forEach(function(t){google.maps.event.removeListener(t)}),this.listeners=[]}},beforeDestroy:function(){this.removeInnerEvents()},render:function(){var t=this.$slots.default||[];return t.length&&(this.tmpVm.node=t),null}}},function(t,e,n){"use strict";var o=n(1),r=n(0);e.a={name:"VueMapPolyline",mixins:[o.a],props:{vid:String,clickable:Boolean,draggable:Boolean,editable:Boolean,strokeColor:String,strokeOpacity:Number,strokePosition:Number,strokeWeight:Number,visible:Boolean,zIndex:Number,geodesic:Boolean,path:Array,icons:Array,events:Object},data:function(){return{converters:{path:function(t){if(t&&t.length)return t.map(r.f)}}}},methods:{__initComponent:function(t){this.$mapComponent=new google.maps.Polyline(t)},$$getPath:function(){return this.$mapComponent.getPath().getArray().map(r.c)}},render:function(){return null}}},function(t,e,n){"use strict";var o=n(1),r=n(0);e.a={name:"VueMapPolygon",mixins:[o.a],props:{vid:String,clickable:Boolean,draggable:Boolean,editable:Boolean,fillColor:String,fillOpacity:Number,strokeColor:String,strokeOpacity:Number,strokePosition:Number,strokeWeight:Number,visible:Boolean,zIndex:Number,path:Array,events:Object},data:function(){return{converters:{path:function(t){if(t&&t.length)return t.map(r.f)}}}},methods:{__initComponent:function(t){this.$mapComponent=new google.maps.Polygon(t)},$$getPath:function(){return this.$mapComponent.getPath().getArray().map(r.c)}},render:function(){return null}}},function(t,e,n){"use strict";var o=n(1),r=n(0),i="VueMapRectangle";e.a={name:i,mixins:[o.a],props:{vid:String,clickable:Boolean,draggable:Boolean,editable:Boolean,fillColor:String,fillOpacity:Number,strokeColor:String,strokeOpacity:Number,strokePosition:Number,strokeWeight:Number,visible:Boolean,zIndex:Number,bounds:{type:Array,$type:"Bounds"},events:Object},data:function(){return{mapTagName:i}},methods:{__initComponent:function(t){this.$mapComponent=new google.maps.Rectangle(t)},$$getBounds:function(){return Object(r.a)(this.$mapComponent.getBounds())},$$getCenter:function(){return Object(r.c)(this.$mapComponent.getBounds().getCenter())}},render:function(){return null}}},function(t,e,n){"use strict";var o=n(1),r=n(0),i="VueMapCircle";e.a={name:i,mixins:[o.a],props:{vid:String,clickable:Boolean,draggable:Boolean,editable:Boolean,fillColor:String,fillOpacity:Number,strokeColor:String,strokeOpacity:Number,strokePosition:Number,strokeWeight:Number,visible:Boolean,zIndex:Number,radius:Number,center:{type:Array,$type:"LngLat"},events:Object},data:function(){return{mapTagName:i}},methods:{__initComponent:function(t){this.$mapComponent=new google.maps.Circle(t)},$$getBounds:function(){return Object(r.a)(this.$mapComponent.getBounds())},$$getCenter:function(){return Object(r.c)(this.$mapComponent.getCenter())},$$getRadius:function(){return this.$mapComponent.getRadius()}},render:function(){return null}}},function(t,e,n){t.exports=n(4)},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i={key:null,protocol:"https",hostAndPath:"maps.googleapis.com/maps/api/js",callback:"mapInitComponent",language:null,region:null},a=function(){function t(e){o(this,t),this._config=r({},i,e),this._document=document,this._window=window,this._scriptLoaded=!1}return t.prototype.load=function(){var t=this;if(this._window.google&&this._window.google.maps&&this._window.google.maps.Map)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var e=this._document.createElement("script");return e.type="text/javascript",e.async=!0,e.defer=!0,e.src=this._getScriptSrc(),this._scriptLoadingPromise=new Promise(function(n,o){t._window.mapInitComponent=function(){n()},e.onerror=function(t){return o(t)}}),this._document.head.appendChild(e),this._scriptLoadingPromise},t.prototype._getScriptSrc=function(){var t=this._config,e=["key","callback","language","region"],n=Object.keys(t).filter(function(t){return~e.indexOf(t)}).filter(function(e){return null!=t[e]}).filter(function(e){return!Array.isArray(t[e])||Array.isArray(t[e])&&t[e].length>0}).map(function(e){var n=t[e];return Array.isArray(n)?{key:e,value:n.join(",")}:{key:e,value:n}}).map(function(t){return t.key+"="+t.value}).join("&");return this._config.protocol+"://"+this._config.hostAndPath+"?"+n},t}();e.a=a},function(t,e,n){"use strict";function o(t){n(17)}var r=n(6),i=n(26),a=n(2),s=o,u=Object(a.a)(r.a,i.a,i.b,!1,s,null,null);e.a=u.exports},function(t,e,n){var o=n(18);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n(20)("7b04d33a",o,!0)},function(t,e,n){e=t.exports=n(19)(!1),e.push([t.i,".vue-map,.vue-map-container{height:100%}",""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=o(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function o(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=n(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function o(t){for(var e=0;e<t.length;e++){var n=t[e],o=l[n.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](n.parts[r]);for(;r<n.parts.length;r++)o.parts.push(i(n.parts[r]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{for(var a=[],r=0;r<n.parts.length;r++)a.push(i(n.parts[r]));l[n.id]={id:n.id,refs:1,parts:a}}}}function r(){var t=document.createElement("style");return t.type="text/css",p.appendChild(t),t}function i(t){var e,n,o=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(o){if(m)return h;o.parentNode.removeChild(o)}if(g){var i=d++;o=f||(f=r()),e=a.bind(null,o,i,!1),n=a.bind(null,o,i,!0)}else o=r(),e=s.bind(null,o),n=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else n()}}function a(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=v(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function s(t,e){var n=e.css,o=e.media,r=e.sourceMap;if(o&&t.setAttribute("media",o),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(21),l={},p=u&&(document.head||document.getElementsByTagName("head")[0]),f=null,d=0,m=!1,h=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){m=n;var r=c(t,e);return o(r),function(e){for(var n=[],i=0;i<r.length;i++){var a=r[i],s=l[a.id];s.refs--,n.push(s)}e?(r=c(t,e),o(r)):r=[];for(var i=0;i<n.length;i++){var s=n[i];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete l[s.id]}}}};var v=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=i[0],s=i[1],u=i[2],c=i[3],l={id:t+":"+r,css:s,media:u,sourceMap:c};o[a]?o[a].parts.push(l):n.push(o[a]={id:a,parts:[l]})}return n}},function(t,e,n){"use strict";function o(){for(var t=[],e="0123456789abcdef",n=0;n<36;n++)t[n]=e.substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}e.a=o},function(t,e,n){"use strict";var o=n(24);t.exports=function(){var t=o.apply(o,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";t.exports=function(){var t=[].map.call(arguments,function(t){return t.trim()}).filter(function(t){return t.length}).join("-");return t.length?1!==t.length&&/[_.\- ]+/.test(t)?t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}):t[0]===t[0].toLowerCase()&&t.slice(1)!==t.slice(1).toLowerCase()?t:t.toLowerCase():""}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=void 0,i=function(){function t(){o(this,t),this._listener=new Map}return t.prototype.addListener=function(t,e,n,o){if(!google.maps.event)throw new Error("please wait for Map API load");var r=google.maps.event.addListener(t,e,n,o);this._listener.get(t)||this._listener.set(t,{});var i=this._listener.get(t);i[e]||(i[e]=[]),i[e].push(r)},t.prototype.removeListener=function(t,e,n){if(!google.maps.event)throw new Error("please wait for Map API load");if(this._listener.get(t)&&this._listener.get(t)[e]){var o=this._listener.get(t)[e];if(n){var r=o.indexOf(n);google.maps.event.removeListener(o[r]),o.splice(r,1)}else o.forEach(function(t){google.maps.event.removeListener(t)}),this._listener.get(t)[e]=[]}},t.prototype.addListenerOnce=function(t,e,n,o){return google.maps.event.addListenerOnce(t,e,n,o)},t.prototype.trigger=function(t,e,n){return google.maps.event.trigger(t,e,n)},t.prototype.clearListeners=function(t){var e=this,n=this._listener.get(t);n&&Object.keys(n).map(function(n){e.removeListener(t,n)})},t}();r=r||new i,e.a=r},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-map-container"},[n("div",{staticClass:"vue-map"},[t._t("map")],2),t._v(" "),t._t("default")],2)},r=[]},function(t,e,n){"use strict";var o=n(8),r=n(2),i=Object(r.a)(o.a,void 0,void 0,!1,null,null,null);e.a=i.exports},function(t,e,n){"use strict";var o=n(9),r=n(2),i=Object(r.a)(o.a,void 0,void 0,!1,null,null,null);e.a=i.exports},function(t,e,n){"use strict";var o=n(10),r=n(2),i=Object(r.a)(o.a,void 0,void 0,!1,null,null,null);e.a=i.exports},function(t,e,n){"use strict";var o=n(11),r=n(2),i=Object(r.a)(o.a,void 0,void 0,!1,null,null,null);e.a=i.exports},function(t,e,n){"use strict";var o=n(12),r=n(2),i=Object(r.a)(o.a,void 0,void 0,!1,null,null,null);e.a=i.exports},function(t,e,n){"use strict";var o=n(13),r=n(2),i=Object(r.a)(o.a,void 0,void 0,!1,null,null,null);e.a=i.exports},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(){o(this,t),this._componentMap=new Map,this._map=null}return t.prototype.setMap=function(t){this._map=t},t.prototype.getMap=function(){return this._map},t.prototype.setComponent=function(t,e){this._componentMap.set(t,e)},t.prototype.getComponent=function(t){return this._componentMap.get(t)},t.prototype.getChildInstance=function(t){return this.getComponent(t)},t.prototype.removeComponent=function(t){this._componentMap.delete(t)},t}();e.a=r}])}); //# sourceMappingURL=index.js.map