Skip to content

Commit

Permalink
version 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto committed Jun 24, 2019
1 parent 87abca4 commit 245267e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
8 changes: 7 additions & 1 deletion dist/leaflet-ui-src.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/leaflet-ui-src.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/leaflet-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/leaflet-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leaflet-ui",
"version": "0.0.1",
"version": "0.0.2",
"description": "Leaflet maps bundle for common user interface customizations",
"main": "dist/leaflet-ui.js",
"module": "src/leaflet-ui.js",
Expand Down
6 changes: 4 additions & 2 deletions src/leaflet-ui.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'google-maps'; // async
import * as gapi from 'google-maps'; // async

import 'leaflet.gridlayer.googlemutant';
import 'leaflet.locatecontrol';
Expand All @@ -9,6 +9,8 @@ import 'leaflet-control-layers-inline';

// import './leaflet-ui.css';

var G = Object.keys(gapi).length ? gapi : GoogleMapsLoader;

(function() {

L.Map.mergeOptions({
Expand All @@ -30,7 +32,7 @@ import 'leaflet-control-layers-inline';
} else {
this.zoomControl.remove();
this.attributionControl.remove();
if (!window.google && isGMap.call(this)) (GoogleMapsLoader).load(initMap.bind(this));
if (!window.google && isGMap.call(this)) G.load(initMap.bind(this));
else initMap.call(this);
}
});
Expand Down

0 comments on commit 245267e

Please # to comment.