load-google-maps

1.0.0 • Public • Published

load-google-maps Build Status

Load the Google Maps JS API

Install

$ npm install --save load-google-maps

Usage

var Google = require('load-google-maps')
 
Google({libraries: ['places']}, function (err, google) {
  //=> google.maps...  
})

API

Google([options], callback) -> undefined

options

Type: object
Default: {}

All supported Google options, including:

  • key
  • libraries (array)
  • client
  • version
  • channel
  • language
  • region
callback

Required
Type: function
Arguments: err, google

A callback called with the Google Maps library once loaded.

License

MIT © Ben Drucker

Readme

Keywords

Package Sidebar

Install

npm i load-google-maps

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker