Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue2-google-maps

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue2-google-maps - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

test/gmapApi-guard.js

11

dist/main.js

@@ -14,2 +14,3 @@ 'use strict';

exports.install = install;
exports.gmapApi = gmapApi;

@@ -80,2 +81,4 @@ var _manager = require('./manager.js');

var GmapApi = new Vue({ data: { gmapApi: null } });
// export everything

@@ -113,2 +116,6 @@ exports.load = _manager.load;

_manager.loaded.then(function () {
return GmapApi.gmapApi = {};
});
if (options.load) {

@@ -130,2 +137,6 @@ (0, _manager.load)(options.load, options.loadCn);

}
}
function gmapApi() {
return GmapApi.gmapApi && window.google;
}

2

dist/vue-google-maps.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("MarkerClusterer")):"function"==typeof define&&define.amd?define(["MarkerClusterer"],t):"object"==typeof exports?exports.VueGoogleMaps=t(require("MarkerClusterer")):e.VueGoogleMaps=t(e.MarkerClusterer)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.mappedProps,n=e.name,r=e.ctr,s=e.ctrArgs,l=e.events,d=e.beforeCreate,p=e.afterCreate,f=e.props,m=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),h="$"+n+"Promise",v="$"+n+"Object";return function(e,t){if(!e)throw new Error(t)}(!(m.props instanceof Array),"`props` should be an object, not Array"),o({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[u.default],props:o({},f,c(t)),render:function(){return""},provide:function(){var e=this,n=this.$mapPromise.then(function(n){e.$map=n;var r=o({},e.options,{map:n},(0,i.getPropsValues)(e,t));if(delete r.options,d){var a=d.bind(e)(r);if(a instanceof Promise)return a.then(function(){return{options:r}})}return{options:r}}).then(function(n){var o,u=n.options,c=r();return e[v]=s?new((o=Function.prototype.bind).call.apply(o,[c,null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(s(u,(0,i.getPropsValues)(e,f||{})))))):new c(u),(0,i.bindProps)(e,e[v],t),(0,a.default)(e,e[v],l),p&&p.bind(e)(e[v]),e[v]});return this[h]=n,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},h,n)},destroyed:function(){this[v]&&this[v].setMap&&this[v].setMap(null)}},m)},t.mappedPropsToVueProps=c;var a=s(n(11)),i=n(2),u=s(n(21));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return Object.entries(e).map(function(e){var t=r(e,2),n=t[0],o=t[1],a={};return"type"in o&&(a.type=o.type),"default"in o&&(a.default=o.default),"required"in o&&(a.required=o.required),[n,a]}).reduce(function(e,t){var n=r(t,2),o=n[0],a=n[1];return e[o]=a,e},{})}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i,u){var s=typeof(e=e||{}).default;"object"!==s&&"function"!==s||(e=e.default);var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId=a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.getPropsValues=function(e,t){return Object.keys(t).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})},t.bindProps=function(e,t,n){var o=function(r){var o=n[r],a=o.twoWay,s=o.type,c=o.trackProperties,l=o.noBind;if(l)return{v:void 0};var d="set"+u(r),p="get"+u(r),f=r.toLowerCase()+"_changed",m=e[r];if(void 0===t[d])throw new Error(d+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);s===Object&&c?(0,i.default)(e,c.map(function(e){return r+"."+e}),function(){t[d](e[r])},void 0!==e[r]):e.$watch(r,function(){var n=e[r];t[d](n)},{immediate:void 0!==m,deep:s===Object}),a&&(e.$gmapOptions.autobindAllEvents||e.$listeners[f])&&t.addListener(f,function(){e.$emit(f,t[p]())})};for(var a in n){var s=o(a);if("object"===(void 0===s?"undefined":r(s)))return s.v}};var o,a=n(10),i=(o=a)&&o.__esModule?o:{default:o};function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.loaded=new Promise(function(e){"undefined"!=typeof window&&(window.vueGoogleMapsInit=e)}),t.load=function(e,t){if("undefined"!=typeof document){var n=document.createElement("SCRIPT");if("object"!==(void 0===e?"undefined":r(e)))throw new Error("options should be an object");Array.prototype.isPrototypeOf(e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var o="https://maps.googleapis.com/";"boolean"==typeof t&&!0===t&&(o="http://maps.google.cn/");var a=o+"maps/api/js?"+Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");n.setAttribute("src",a),n.setAttribute("async",""),n.setAttribute("defer",""),document.head.appendChild(n)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(24)).default||r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),a=n(18),i=(r=a)&&r.__esModule?r:{default:r},u=n(3);var s={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}};t.default={mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",function(){t.value=e.defaultPlace}),u.loaded.then(function(){var t=(0,o.getPropsValues)(e,s);if(e.selectFirstOnEnter&&(0,i.default)(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(s,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,o.bindProps)(e,e.autoCompleter,n),e.autoCompleter.addListener("place_changed",function(){e.$emit("place_changed",e.autoCompleter.getPlace())})})},created:function(){console.warn("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:s}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(27)).default||r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(31)).default||r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(35)).default||r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick(function(){return e._resizeCallback()})}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function a(){o||(o=!0,e.$nextTick(function(){o=!1,n()}))}var i=!0,u=!1,s=void 0;try{for(var c,l=t[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var d=c.value;e.$watch(d,a,{immediate:r})}}catch(e){u=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(u)throw s}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=function(n){(e.$gmapOptions.autobindAllEvents||e.$listeners[n])&&t.addListener(n,function(t){e.$emit(n,t)})},o=!0,a=!1,i=void 0;try{for(var u,s=n[Symbol.iterator]();!(o=(u=s.next()).done);o=!0){r(u.value)}}catch(e){a=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(a)throw i}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement;return(this._self._c||e)("input",{ref:"input",attrs:{type:"text",placeholder:this.placeholder},domProps:{value:this.value}})},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("label",[t("span",{domProps:{textContent:this._s(this.label)}}),this._v(" "),t("input",{ref:"input",class:this.className,attrs:{type:"text",placeholder:this.placeholder}})])},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-street-view-pano-container"},[t("div",{ref:"vue-street-view-pano",staticClass:"vue-street-view-pano"}),this._v(" "),this._t("default")],2)},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-map-container"},[t("div",{ref:"vue-map",staticClass:"vue-map"}),this._v(" "),t("div",{staticClass:"vue-map-hidden"},[this._t("default")],2),this._v(" "),this._t("visible")],2)},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},o=[]},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var a=t[o],i=a[0],u={id:e+":"+o,css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(u):n.push(r[i]={id:i,parts:[u]})}return n}n.r(t),n.d(t,"default",function(){return m});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)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 a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),u=null,s=0,c=!1,l=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){c=n,d=o||{};var i=r(e,t);return h(i),function(t){for(var n=[],o=0;o<i.length;o++){var u=i[o];(s=a[u.id]).refs--,n.push(s)}t?h(i=r(e,t)):i=[];for(o=0;o<n.length;o++){var s;if(0===(s=n[o]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete a[s.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(y(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:i}}}}function v(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(c)return l;r.parentNode.removeChild(r)}if(f){var o=s++;r=u||(u=v()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=v(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);d.ssrId&&e.setAttribute(p,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b,g=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e(function(){t+=1},function(){t=Math.max(0,t-1)},function(){return 0===t})}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then(function(t){e.$map=t}),{}}}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(22)),o=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}var i={maxZoom:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},gridSize:{type:Number,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}};t.default=(0,o.default)({mappedProps:i,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===r.default)throw console.error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js"),new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");return r.default},ctrArgs:function(e){return[e.map,[],function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["map"])]},render:function(e){return e("div",this.$slots.default)},afterCreate:function(e){var t=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};for(var n in i)i[n].twoWay&&this.$on(n.toLowerCase()+"_changed",t)},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var e=this;this.$children.forEach(function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)}),this.$clusterObject&&this.$clusterObject.clearMarkers()}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2),i=n(18),u=(r=i)&&r.__esModule?r:{default:r},s=n(3),c=n(0);var l={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},d={placeholder:{required:!1,type:String},selectFirstOnEnter:{require:!1,type:Boolean,default:!1},value:{type:String,default:""},options:{type:Object}};t.default={mounted:function(){var e=this;s.loaded.then(function(){if(e.selectFirstOnEnter&&(0,u.default)(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");var t=o({},(0,a.getPropsValues)(e,l),e.options);e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,t),(0,a.bindProps)(e,e.$autocomplete,l),e.$watch("componentRestrictions",function(t){void 0!==t&&e.$autocomplete.setComponentRestrictions(t)}),e.$autocomplete.addListener("place_changed",function(){e.$emit("place_changed",e.$autocomplete.getPlace())})})},props:o({},(0,c.mappedPropsToVueProps)(l),d)}},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(12),u=n(1),s=Object(u.a)(o.a,i.a,i.b,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";n.r(t);var r=n(5),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(13),u=n(1),s=Object(u.a)(o.a,i.a,i.b,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),a=d(n(11)),i=n(2),u=d(n(9)),s=d(n(19)),c=d(n(10)),l=n(0);function d(e){return e&&e.__esModule?e:{default:e}}var p={zoom:{twoWay:!0,type:Number},pov:{twoWay:!0,type:Object,trackProperties:["pitch","heading"]},position:{twoWay:!0,type:Object,noBind:!0},pano:{twoWay:!0,type:String},motionTracking:{twoWay:!1,type:Boolean},visible:{twoWay:!0,type:Boolean,default:!0},options:{twoWay:!1,type:Object,default:function(){return{}}}},f=["closeclick","status_changed"];t.default={mixins:[u.default],props:(0,l.mappedPropsToVueProps)(p),replace:!1,methods:{resize:function(){this.$panoObject&&google.maps.event.trigger(this.$panoObject,"resize")}},provide:function(){var e=this,t=new Promise(function(t,n){e.$panoPromiseDeferred={resolve:t,reject:n}});return{$panoPromise:t,$mapPromise:t}},computed:{finalLat:function(){return this.position&&"function"==typeof this.position.lat?this.position.lat():this.position.lat},finalLng:function(){return this.position&&"function"==typeof this.position.lng?this.position.lng():this.position.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$panoObject&&this.$panoObject.setZoom(e)}},mounted:function(){var e=this;return o.loaded.then(function(){var t=e.$refs["vue-street-view-pano"],n=r({},e.options,(0,i.getPropsValues)(e,p));return delete n.options,e.$panoObject=new google.maps.StreetViewPanorama(t,n),(0,i.bindProps)(e,e.$panoObject,p),(0,a.default)(e,e.$panoObject,f),(0,s.default)(function(t,n,r){t(),e.$panoObject.addListener("position_changed",function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}),(0,c.default)(e,["finalLat","finalLng"],function(){t(),e.$panoObject.setPosition(e.finalLatLng)})}),e.$panoPromiseDeferred.resolve(e.$panoObject),e.$panoPromise}).catch(function(e){throw e})}}},function(e,t,n){(e.exports=n(20)()).push([e.i,".vue-street-view-pano-container{position:relative}.vue-street-view-pano-container .vue-street-view-pano{left:0;right:0;top:0;bottom:0;position:absolute}",""])},function(e,t,n){var r=n(28);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(17).default)("31fa8950",r,!0,{})},function(e,t,n){"use strict";n.r(t);var r=n(6),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(14),u=n(1);var s=function(e){n(29)},c=Object(u.a)(o.a,i.a,i.b,!1,s,null,null);t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),a=d(n(11)),i=n(2),u=d(n(9)),s=d(n(19)),c=d(n(10)),l=n(0);function d(e){return e&&e.__esModule?e:{default:e}}var p={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},f=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],m=["panBy","panTo","panToBounds","fitBounds"].reduce(function(e,t){return e[t]=function(){this.$mapObject&&this.$mapObject[t].apply(this.$mapObject,arguments)},e},{}),h={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}};t.default={mixins:[u.default],props:(0,l.mappedPropsToVueProps)(p),provide:function(){var e=this;return this.$mapPromise=new Promise(function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}}),{$mapPromise:this.$mapPromise}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},mounted:function(){var e=this;return o.loaded.then(function(){var t=e.$refs["vue-map"],n=r({},e.options,(0,i.getPropsValues)(e,p));return delete n.options,e.$mapObject=new google.maps.Map(t,n),(0,i.bindProps)(e,e.$mapObject,p),(0,a.default)(e,e.$mapObject,f),(0,s.default)(function(t,n,r){e.$mapObject.addListener("center_changed",function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}),(0,c.default)(e,["finalLat","finalLng"],function(){t(),e.$mapObject.setCenter(e.finalLatLng)})}),e.$mapObject.addListener("zoom_changed",function(){e.$emit("zoom_changed",e.$mapObject.getZoom())}),e.$mapObject.addListener("bounds_changed",function(){e.$emit("bounds_changed",e.$mapObject.getBounds())}),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject}).catch(function(e){throw e})},methods:r({},h,m)}},function(e,t,n){(e.exports=n(20)()).push([e.i,".vue-map-container{position:relative}.vue-map-container .vue-map{left:0;right:0;top:0;bottom:0;position:absolute}.vue-map-hidden{display:none}",""])},function(e,t,n){var r=n(32);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(17).default)("01ed1b0e",r,!0,{})},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(15),u=n(1);var s=function(e){n(33)},c=Object(u.a)(o.a,i.a,i.b,!1,s,null,null);t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};t.default=(0,a.default)({mappedProps:i,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.flyaway,this.$markerPromise)return delete e.position,this.$markerPromise.then(function(e){return t.$markerObject=e,e})},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",function(){e._openInfoWindow()})}})},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(16),u=n(1),s=Object(u.a)(o.a,i.a,i.b,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}};t.default=(0,a.default)({mappedProps:i,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}};t.default=(0,a.default)({mappedProps:i,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),i=(r=a)&&r.__esModule?r:{default:r};var u={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}};t.default=(0,i.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:u,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){e.path||delete e.path,e.paths||delete e.paths},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",function(r){if(r){n(),e.setPaths(r);for(var a=function(){t.$emit("paths_changed",e.getPaths())},i=[],u=e.getPaths(),s=0;s<u.getLength();s++){var c=u.getAt(s);i.push([c,c.addListener("insert_at",a)]),i.push([c,c.addListener("remove_at",a)]),i.push([c,c.addListener("set_at",a)])}i.push([u,u.addListener("insert_at",a)]),i.push([u,u.addListener("remove_at",a)]),i.push([u,u.addListener("set_at",a)]),n=function(){i.map(function(e){var t=o(e,2),n=(t[0],t[1]);return google.maps.event.removeListener(n)})}}},{deep:this.deepWatch,immediate:!0}),this.$watch("path",function(r){if(r){n(),e.setPaths(r);var a=e.getPath(),i=[],u=function(){t.$emit("path_changed",e.getPath())};i.push([a,a.addListener("insert_at",u)]),i.push([a,a.addListener("remove_at",u)]),i.push([a,a.addListener("set_at",u)]),n=function(){i.map(function(e){var t=o(e,2),n=(t[0],t[1]);return google.maps.event.removeListener(n)})}}},{deep:this.deepWatch,immediate:!0})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),i=(r=a)&&r.__esModule?r:{default:r};var u={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}};t.default=(0,i.default)({mappedProps:u,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),a=[],i=function(){e.$emit("path_changed",e.$polylineObject.getPath())};a.push([r,r.addListener("insert_at",i)]),a.push([r,r.addListener("remove_at",i)]),a.push([r,r.addListener("set_at",i)]),t=function(){a.map(function(e){var t=o(e,2),n=(t[0],t[1]);return google.maps.event.removeListener(n)})}}},{deep:this.deepWatch})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}};t.default=(0,a.default)({mappedProps:i,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""},destroyed:function(){this.$markerObject&&(this.$clusterPromise?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;this.$clusterPromise&&this.$clusterPromise.then(function(n){n.addMarker(e),t.$clusterObject=n})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreetViewPanorama=t.MountableMixin=t.Autocomplete=t.MapElementFactory=t.MapElementMixin=t.PlaceInput=t.Map=t.InfoWindow=t.Rectangle=t.Cluster=t.Circle=t.Polygon=t.Polyline=t.Marker=t.loaded=t.load=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.install=function(e,t){t=r({installComponents:!0,autobindAllEvents:!1},t);var n=new e;e.$gmapDefaultResizeBus=n,e.mixin({created:function(){this.$gmapDefaultResizeBus=n,this.$gmapOptions=t}}),t.load&&(0,o.load)(t.load,t.loadCn);t.installComponents&&(e.component("GmapMap",d.default),e.component("GmapMarker",a.default),e.component("GmapInfoWindow",l.default),e.component("GmapPolyline",i.default),e.component("GmapPolygon",u.default),e.component("GmapCircle",s.default),e.component("GmapRectangle",c.default),e.component("GmapAutocomplete",m.default),e.component("GmapPlaceInput",f.default),e.component("GmapStreetViewPanorama",p.default))};var o=n(3),a=b(n(41)),i=b(n(40)),u=b(n(39)),s=b(n(38)),c=b(n(37)),l=b(n(36)),d=b(n(34)),p=b(n(30)),f=b(n(26)),m=b(n(25)),h=b(n(21)),v=b(n(0)),y=b(n(9));function b(e){return e&&e.__esModule?e:{default:e}}var g,_=(g=n(23)).default||g;t.load=o.load,t.loaded=o.loaded,t.Marker=a.default,t.Polyline=i.default,t.Polygon=u.default,t.Circle=s.default,t.Cluster=_,t.Rectangle=c.default,t.InfoWindow=l.default,t.Map=d.default,t.PlaceInput=f.default,t.MapElementMixin=h.default,t.MapElementFactory=v.default,t.Autocomplete=m.default,t.MountableMixin=y.default,t.StreetViewPanorama=p.default},function(e,t,n){e.exports=n(42)}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("MarkerClusterer")):"function"==typeof define&&define.amd?define(["MarkerClusterer"],t):"object"==typeof exports?exports.VueGoogleMaps=t(require("MarkerClusterer")):e.VueGoogleMaps=t(e.MarkerClusterer)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.mappedProps,n=e.name,r=e.ctr,s=e.ctrArgs,l=e.events,d=e.beforeCreate,p=e.afterCreate,f=e.props,m=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),h="$"+n+"Promise",v="$"+n+"Object";return function(e,t){if(!e)throw new Error(t)}(!(m.props instanceof Array),"`props` should be an object, not Array"),o({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[u.default],props:o({},f,c(t)),render:function(){return""},provide:function(){var e=this,n=this.$mapPromise.then(function(n){e.$map=n;var r=o({},e.options,{map:n},(0,i.getPropsValues)(e,t));if(delete r.options,d){var a=d.bind(e)(r);if(a instanceof Promise)return a.then(function(){return{options:r}})}return{options:r}}).then(function(n){var o,u=n.options,c=r();return e[v]=s?new((o=Function.prototype.bind).call.apply(o,[c,null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(s(u,(0,i.getPropsValues)(e,f||{})))))):new c(u),(0,i.bindProps)(e,e[v],t),(0,a.default)(e,e[v],l),p&&p.bind(e)(e[v]),e[v]});return this[h]=n,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},h,n)},destroyed:function(){this[v]&&this[v].setMap&&this[v].setMap(null)}},m)},t.mappedPropsToVueProps=c;var a=s(n(11)),i=n(2),u=s(n(21));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return Object.entries(e).map(function(e){var t=r(e,2),n=t[0],o=t[1],a={};return"type"in o&&(a.type=o.type),"default"in o&&(a.default=o.default),"required"in o&&(a.required=o.required),[n,a]}).reduce(function(e,t){var n=r(t,2),o=n[0],a=n[1];return e[o]=a,e},{})}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i,u){var s=typeof(e=e||{}).default;"object"!==s&&"function"!==s||(e=e.default);var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId=a),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.getPropsValues=function(e,t){return Object.keys(t).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})},t.bindProps=function(e,t,n){var o=function(r){var o=n[r],a=o.twoWay,s=o.type,c=o.trackProperties,l=o.noBind;if(l)return{v:void 0};var d="set"+u(r),p="get"+u(r),f=r.toLowerCase()+"_changed",m=e[r];if(void 0===t[d])throw new Error(d+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);s===Object&&c?(0,i.default)(e,c.map(function(e){return r+"."+e}),function(){t[d](e[r])},void 0!==e[r]):e.$watch(r,function(){var n=e[r];t[d](n)},{immediate:void 0!==m,deep:s===Object}),a&&(e.$gmapOptions.autobindAllEvents||e.$listeners[f])&&t.addListener(f,function(){e.$emit(f,t[p]())})};for(var a in n){var s=o(a);if("object"===(void 0===s?"undefined":r(s)))return s.v}};var o,a=n(10),i=(o=a)&&o.__esModule?o:{default:o};function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.loaded=new Promise(function(e){"undefined"!=typeof window&&(window.vueGoogleMapsInit=e)}),t.load=function(e,t){if("undefined"!=typeof document){var n=document.createElement("SCRIPT");if("object"!==(void 0===e?"undefined":r(e)))throw new Error("options should be an object");Array.prototype.isPrototypeOf(e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var o="https://maps.googleapis.com/";"boolean"==typeof t&&!0===t&&(o="http://maps.google.cn/");var a=o+"maps/api/js?"+Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");n.setAttribute("src",a),n.setAttribute("async",""),n.setAttribute("defer",""),document.head.appendChild(n)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(24)).default||r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),a=n(18),i=(r=a)&&r.__esModule?r:{default:r},u=n(3);var s={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}};t.default={mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",function(){t.value=e.defaultPlace}),u.loaded.then(function(){var t=(0,o.getPropsValues)(e,s);if(e.selectFirstOnEnter&&(0,i.default)(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(s,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,o.bindProps)(e,e.autoCompleter,n),e.autoCompleter.addListener("place_changed",function(){e.$emit("place_changed",e.autoCompleter.getPlace())})})},created:function(){console.warn("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:s}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(27)).default||r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(31)).default||r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r=n(35)).default||r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick(function(){return e._resizeCallback()})}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function a(){o||(o=!0,e.$nextTick(function(){o=!1,n()}))}var i=!0,u=!1,s=void 0;try{for(var c,l=t[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var d=c.value;e.$watch(d,a,{immediate:r})}}catch(e){u=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(u)throw s}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=function(n){(e.$gmapOptions.autobindAllEvents||e.$listeners[n])&&t.addListener(n,function(t){e.$emit(n,t)})},o=!0,a=!1,i=void 0;try{for(var u,s=n[Symbol.iterator]();!(o=(u=s.next()).done);o=!0){r(u.value)}}catch(e){a=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(a)throw i}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement;return(this._self._c||e)("input",{ref:"input",attrs:{type:"text",placeholder:this.placeholder},domProps:{value:this.value}})},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("label",[t("span",{domProps:{textContent:this._s(this.label)}}),this._v(" "),t("input",{ref:"input",class:this.className,attrs:{type:"text",placeholder:this.placeholder}})])},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-street-view-pano-container"},[t("div",{ref:"vue-street-view-pano",staticClass:"vue-street-view-pano"}),this._v(" "),this._t("default")],2)},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-map-container"},[t("div",{ref:"vue-map",staticClass:"vue-map"}),this._v(" "),t("div",{staticClass:"vue-map-hidden"},[this._t("default")],2),this._v(" "),this._t("visible")],2)},o=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},o=[]},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var a=t[o],i=a[0],u={id:e+":"+o,css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(u):n.push(r[i]={id:i,parts:[u]})}return n}n.r(t),n.d(t,"default",function(){return m});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)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 a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),u=null,s=0,c=!1,l=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,o){c=n,d=o||{};var i=r(e,t);return h(i),function(t){for(var n=[],o=0;o<i.length;o++){var u=i[o];(s=a[u.id]).refs--,n.push(s)}t?h(i=r(e,t)):i=[];for(o=0;o<n.length;o++){var s;if(0===(s=n[o]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete a[s.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(y(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:i}}}}function v(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(c)return l;r.parentNode.removeChild(r)}if(f){var o=s++;r=u||(u=v()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=v(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);d.ssrId&&e.setAttribute(p,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b,g=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e(function(){t+=1},function(){t=Math.max(0,t-1)},function(){return 0===t})}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then(function(t){e.$map=t}),{}}}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(22)),o=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}var i={maxZoom:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},gridSize:{type:Number,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}};t.default=(0,o.default)({mappedProps:i,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===r.default)throw console.error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js"),new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");return r.default},ctrArgs:function(e){return[e.map,[],function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["map"])]},render:function(e){return e("div",this.$slots.default)},afterCreate:function(e){var t=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};for(var n in i)i[n].twoWay&&this.$on(n.toLowerCase()+"_changed",t)},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var e=this;this.$children.forEach(function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)}),this.$clusterObject&&this.$clusterObject.clearMarkers()}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2),i=n(18),u=(r=i)&&r.__esModule?r:{default:r},s=n(3),c=n(0);var l={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},d={placeholder:{required:!1,type:String},selectFirstOnEnter:{require:!1,type:Boolean,default:!1},value:{type:String,default:""},options:{type:Object}};t.default={mounted:function(){var e=this;s.loaded.then(function(){if(e.selectFirstOnEnter&&(0,u.default)(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");var t=o({},(0,a.getPropsValues)(e,l),e.options);e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,t),(0,a.bindProps)(e,e.$autocomplete,l),e.$watch("componentRestrictions",function(t){void 0!==t&&e.$autocomplete.setComponentRestrictions(t)}),e.$autocomplete.addListener("place_changed",function(){e.$emit("place_changed",e.$autocomplete.getPlace())})})},props:o({},(0,c.mappedPropsToVueProps)(l),d)}},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(12),u=n(1),s=Object(u.a)(o.a,i.a,i.b,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";n.r(t);var r=n(5),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(13),u=n(1),s=Object(u.a)(o.a,i.a,i.b,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),a=d(n(11)),i=n(2),u=d(n(9)),s=d(n(19)),c=d(n(10)),l=n(0);function d(e){return e&&e.__esModule?e:{default:e}}var p={zoom:{twoWay:!0,type:Number},pov:{twoWay:!0,type:Object,trackProperties:["pitch","heading"]},position:{twoWay:!0,type:Object,noBind:!0},pano:{twoWay:!0,type:String},motionTracking:{twoWay:!1,type:Boolean},visible:{twoWay:!0,type:Boolean,default:!0},options:{twoWay:!1,type:Object,default:function(){return{}}}},f=["closeclick","status_changed"];t.default={mixins:[u.default],props:(0,l.mappedPropsToVueProps)(p),replace:!1,methods:{resize:function(){this.$panoObject&&google.maps.event.trigger(this.$panoObject,"resize")}},provide:function(){var e=this,t=new Promise(function(t,n){e.$panoPromiseDeferred={resolve:t,reject:n}});return{$panoPromise:t,$mapPromise:t}},computed:{finalLat:function(){return this.position&&"function"==typeof this.position.lat?this.position.lat():this.position.lat},finalLng:function(){return this.position&&"function"==typeof this.position.lng?this.position.lng():this.position.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$panoObject&&this.$panoObject.setZoom(e)}},mounted:function(){var e=this;return o.loaded.then(function(){var t=e.$refs["vue-street-view-pano"],n=r({},e.options,(0,i.getPropsValues)(e,p));return delete n.options,e.$panoObject=new google.maps.StreetViewPanorama(t,n),(0,i.bindProps)(e,e.$panoObject,p),(0,a.default)(e,e.$panoObject,f),(0,s.default)(function(t,n,r){t(),e.$panoObject.addListener("position_changed",function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}),(0,c.default)(e,["finalLat","finalLng"],function(){t(),e.$panoObject.setPosition(e.finalLatLng)})}),e.$panoPromiseDeferred.resolve(e.$panoObject),e.$panoPromise}).catch(function(e){throw e})}}},function(e,t,n){(e.exports=n(20)()).push([e.i,".vue-street-view-pano-container{position:relative}.vue-street-view-pano-container .vue-street-view-pano{left:0;right:0;top:0;bottom:0;position:absolute}",""])},function(e,t,n){var r=n(28);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(17).default)("6215eb60",r,!0,{})},function(e,t,n){"use strict";n.r(t);var r=n(6),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(14),u=n(1);var s=function(e){n(29)},c=Object(u.a)(o.a,i.a,i.b,!1,s,null,null);t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(3),a=d(n(11)),i=n(2),u=d(n(9)),s=d(n(19)),c=d(n(10)),l=n(0);function d(e){return e&&e.__esModule?e:{default:e}}var p={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},f=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],m=["panBy","panTo","panToBounds","fitBounds"].reduce(function(e,t){return e[t]=function(){this.$mapObject&&this.$mapObject[t].apply(this.$mapObject,arguments)},e},{}),h={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}};t.default={mixins:[u.default],props:(0,l.mappedPropsToVueProps)(p),provide:function(){var e=this;return this.$mapPromise=new Promise(function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}}),{$mapPromise:this.$mapPromise}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},mounted:function(){var e=this;return o.loaded.then(function(){var t=e.$refs["vue-map"],n=r({},e.options,(0,i.getPropsValues)(e,p));return delete n.options,e.$mapObject=new google.maps.Map(t,n),(0,i.bindProps)(e,e.$mapObject,p),(0,a.default)(e,e.$mapObject,f),(0,s.default)(function(t,n,r){e.$mapObject.addListener("center_changed",function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}),(0,c.default)(e,["finalLat","finalLng"],function(){t(),e.$mapObject.setCenter(e.finalLatLng)})}),e.$mapObject.addListener("zoom_changed",function(){e.$emit("zoom_changed",e.$mapObject.getZoom())}),e.$mapObject.addListener("bounds_changed",function(){e.$emit("bounds_changed",e.$mapObject.getBounds())}),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject}).catch(function(e){throw e})},methods:r({},h,m)}},function(e,t,n){(e.exports=n(20)()).push([e.i,".vue-map-container{position:relative}.vue-map-container .vue-map{left:0;right:0;top:0;bottom:0;position:absolute}.vue-map-hidden{display:none}",""])},function(e,t,n){var r=n(32);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(17).default)("6d3e8be4",r,!0,{})},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(15),u=n(1);var s=function(e){n(33)},c=Object(u.a)(o.a,i.a,i.b,!1,s,null,null);t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};t.default=(0,a.default)({mappedProps:i,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.flyaway,this.$markerPromise)return delete e.position,this.$markerPromise.then(function(e){return t.$markerObject=e,e})},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",function(){e._openInfoWindow()})}})},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,function(){return r[e]})}(a);var i=n(16),u=n(1),s=Object(u.a)(o.a,i.a,i.b,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}};t.default=(0,a.default)({mappedProps:i,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}};t.default=(0,a.default)({mappedProps:i,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),i=(r=a)&&r.__esModule?r:{default:r};var u={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}};t.default=(0,i.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:u,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){e.path||delete e.path,e.paths||delete e.paths},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",function(r){if(r){n(),e.setPaths(r);for(var a=function(){t.$emit("paths_changed",e.getPaths())},i=[],u=e.getPaths(),s=0;s<u.getLength();s++){var c=u.getAt(s);i.push([c,c.addListener("insert_at",a)]),i.push([c,c.addListener("remove_at",a)]),i.push([c,c.addListener("set_at",a)])}i.push([u,u.addListener("insert_at",a)]),i.push([u,u.addListener("remove_at",a)]),i.push([u,u.addListener("set_at",a)]),n=function(){i.map(function(e){var t=o(e,2),n=(t[0],t[1]);return google.maps.event.removeListener(n)})}}},{deep:this.deepWatch,immediate:!0}),this.$watch("path",function(r){if(r){n(),e.setPaths(r);var a=e.getPath(),i=[],u=function(){t.$emit("path_changed",e.getPath())};i.push([a,a.addListener("insert_at",u)]),i.push([a,a.addListener("remove_at",u)]),i.push([a,a.addListener("set_at",u)]),n=function(){i.map(function(e){var t=o(e,2),n=(t[0],t[1]);return google.maps.event.removeListener(n)})}}},{deep:this.deepWatch,immediate:!0})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n(0),i=(r=a)&&r.__esModule?r:{default:r};var u={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}};t.default=(0,i.default)({mappedProps:u,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),a=[],i=function(){e.$emit("path_changed",e.$polylineObject.getPath())};a.push([r,r.addListener("insert_at",i)]),a.push([r,r.addListener("remove_at",i)]),a.push([r,r.addListener("set_at",i)]),t=function(){a.map(function(e){var t=o(e,2),n=(t[0],t[1]);return google.maps.event.removeListener(n)})}}},{deep:this.deepWatch})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var i={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}};t.default=(0,a.default)({mappedProps:i,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""},destroyed:function(){this.$markerObject&&(this.$clusterPromise?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;this.$clusterPromise&&this.$clusterPromise.then(function(n){n.addMarker(e),t.$clusterObject=n})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreetViewPanorama=t.MountableMixin=t.Autocomplete=t.MapElementFactory=t.MapElementMixin=t.PlaceInput=t.Map=t.InfoWindow=t.Rectangle=t.Cluster=t.Circle=t.Polygon=t.Polyline=t.Marker=t.loaded=t.load=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.install=function(e,t){t=r({installComponents:!0,autobindAllEvents:!1},t);var n=new e;e.$gmapDefaultResizeBus=n,e.mixin({created:function(){this.$gmapDefaultResizeBus=n,this.$gmapOptions=t}}),o.loaded.then(function(){return j.gmapApi={}}),t.load&&(0,o.load)(t.load,t.loadCn);t.installComponents&&(e.component("GmapMap",d.default),e.component("GmapMarker",a.default),e.component("GmapInfoWindow",l.default),e.component("GmapPolyline",i.default),e.component("GmapPolygon",u.default),e.component("GmapCircle",s.default),e.component("GmapRectangle",c.default),e.component("GmapAutocomplete",m.default),e.component("GmapPlaceInput",f.default),e.component("GmapStreetViewPanorama",p.default))},t.gmapApi=function(){return j.gmapApi&&window.google};var o=n(3),a=b(n(41)),i=b(n(40)),u=b(n(39)),s=b(n(38)),c=b(n(37)),l=b(n(36)),d=b(n(34)),p=b(n(30)),f=b(n(26)),m=b(n(25)),h=b(n(21)),v=b(n(0)),y=b(n(9));function b(e){return e&&e.__esModule?e:{default:e}}var g,_=(g=n(23)).default||g,j=new Vue({data:{gmapApi:null}});t.load=o.load,t.loaded=o.loaded,t.Marker=a.default,t.Polyline=i.default,t.Polygon=u.default,t.Circle=s.default,t.Cluster=_,t.Rectangle=c.default,t.InfoWindow=l.default,t.Map=d.default,t.PlaceInput=f.default,t.MapElementMixin=h.default,t.MapElementFactory=v.default,t.Autocomplete=m.default,t.MountableMixin=y.default,t.StreetViewPanorama=p.default},function(e,t,n){e.exports=n(42)}])});
{
"name": "vue2-google-maps",
"version": "0.9.3",
"version": "0.9.4",
"description": "This is a google map component for Vue.js, updated for Vue 2 compatibility",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

@@ -58,6 +58,3 @@ # vue-google-maps

import Vue from 'vue'
// Regular Webpack:
import * as VueGoogleMaps from 'vue2-google-maps'
// For Nuxt.js:
// import * as VueGoogleMaps from 'vue2-google-maps/src/main'

@@ -71,7 +68,7 @@ Vue.use(VueGoogleMaps, {

// (as you require)
//// If you want to set the version, you can do so:
// v: '3.26',
},
//// If you intend to programmatically custom event listener code

@@ -82,3 +79,3 @@ //// (e.g. `this.$refs.gmap.$on('zoom_changed', someFunc)`)

// autobindAllEvents: false,
//// If you want to manually install components, e.g.

@@ -104,3 +101,3 @@ //// import {GmapMarker} from 'vue2-google-maps/src/components/marker'

// Therefore we need to write mapRef.$mapPromise.then(() => ...)
this.$refs.mapRef.$mapPromise.then((map) => {

@@ -114,9 +111,21 @@ map.panTo({lat: 1.38, lng: 103.80})

If you need to gain access to the `google` object:
```js
import {loaded} from 'vue2-google-maps'
```vue
<template>
let size = null
loaded.then(() => {
size = new google.maps.Size(500, 600)
})
<GmapMap
:center="{lat: 1.38, lng: 103.8}"
:zoom="12">
<GmapMarker ref="myMarker"
:position="google && new google.maps.LatLng(1.38, 103.8)" />
</GmapMap>
</template>
<script>
import {gmapApi} from 'vue2-google-maps'
export default {
computed: {
google: gmapApi
}
}
</script>
```

@@ -132,3 +141,3 @@

config.externals.splice(0, 0, function (context, request, callback) {
if (/^vue2-google-maps\//.test(request)) {
if (/^vue2-google-maps($|\/)/.test(request)) {
callback(null, false)

@@ -158,3 +167,3 @@ } else {

```js
import GmapCluster from 'vue2-google-maps/src/components/cluster' // replace src with dist if you have Babel issues
import GmapCluster from 'vue2-google-maps/dist/components/cluster' // replace src with dist if you have Babel issues

@@ -183,3 +192,3 @@ Vue.component('GmapCluster', GmapCluster)

events: ['directions_changed'],
// Mapped Props will automatically set up

@@ -186,0 +195,0 @@ // this.$watch('propertyName', (v) => instance.setPropertyName(v))

@@ -29,2 +29,4 @@ import {load, loaded} from './manager.js'

const GmapApi = new Vue({data: {gmapApi: null}})
// export everything

@@ -51,2 +53,4 @@ export {load, loaded, Marker, Polyline, Polygon, Circle, Cluster, Rectangle,

loaded.then(() => GmapApi.gmapApi = {})
if (options.load) {

@@ -69,1 +73,5 @@ load(options.load, options.loadCn)

}
export function gmapApi() {
return GmapApi.gmapApi && window.google
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc