Skip to content

Commit

Permalink
chore: v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed May 20, 2018
1 parent 8cefcc4 commit 4042000
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
12 changes: 8 additions & 4 deletions dist/vue-googlemaps.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,8 @@ var loader = {
var apiKey = _ref.apiKey,
version = _ref.version,
libraries = _ref.libraries,
loadCn = _ref.loadCn;
loadCn = _ref.loadCn,
useBetaRenderer = _ref.useBetaRenderer;

if (typeof window === 'undefined') {
// Do nothing if run from server-side
Expand Down Expand Up @@ -975,8 +976,10 @@ var loader = {
return encodeURIComponent(key) + '=' + encodeURIComponent(options[key]);
}).join('&');

if (version) {
url = url + '&v=' + version;
var usingBetaRenderer = version && version === '3.exp' || typeof useBetaRenderer === 'boolean' && useBetaRenderer === true;

if (usingBetaRenderer || version) {
url = url + '&v=' + (usingBetaRenderer ? '3.exp&slippy=true' : version);
}

googleMapScript.setAttribute('src', url);
Expand Down Expand Up @@ -1876,6 +1879,7 @@ var Map = { render: function render() {
type: Number
},
zoom: {
required: true,
type: Number
}
},
Expand Down Expand Up @@ -2242,7 +2246,7 @@ function registerComponents(Vue, prefix) {

var plugin = {
// eslint-disable-next-line no-undef
version: "0.1.0",
version: "0.1.1",
install: function install(Vue, options) {
var finalOptions = Object.assign({}, {
installComponents: true,
Expand Down
Loading

0 comments on commit 4042000

Please sign in to comment.