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

npm travis Dependency Status devDependency Status

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' // optional
    })
    .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

6,719

Version

1.1.1

License

MIT

Unpacked Size

5.75 kB

Total Files

9

Last publish

Collaborators

  • laurencedorman