This package has been deprecated
Author message:
This package is deprecated, use @googlemaps/js-api-loader instead
google-maps-api-loader
1.1.1 • Public • Published Google Maps API Loader
Provides a convenient wrapper for the Google Maps API, allowing it to be called in the promise syntax.
Installation
$ npm install --save google-maps-api-loader
Usage
var GoogleMapsApiLoader = require('google-maps-api-loader');
GoogleMapsApiLoader({
libraries: ['places'],
apiKey: 'your-api-key'
})
.then(function(googleApi) {
var autocomplete = new googleApi.maps.places.AutocompleteService();
}, function(err) {
console.error(err);
});
License
MIT
Package Sidebar
Install
npm i google-maps-api-loader
Weekly Downloads