Skip to content

Repository files navigation

Google Maps API Loader

npmtravisDependency StatusdevDependency 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

varGoogleMapsApiLoader=require('google-maps-api-loader');GoogleMapsApiLoader({libraries: ['places'],apiKey: 'your-api-key'// optional}).then(function(googleApi){varautocomplete=newgoogleApi.maps.places.AutocompleteService();},function(err){console.error(err);});

License

MIT

About

A promise wrapper for loading the Google Maps API

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages