Socket
Book a DemoInstallSign in
Socket

load-gmaps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-gmaps

Load the Google Maps script asynchronously.

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

Load Gmaps

Asynchronously load Google Maps script.

Usage

Make sure to include a Promise polyfill for browsers that don’t support it natively. es6-promise seems to do a nice job.

var loadGmaps = require('load-gmaps');

// Set version to load (Optional).
loadGmaps.version = '3.19';

loadGmaps().then(function (mapsApi) {
  // Create a map.
  var map = new mapsApi.Map(/* options */);
});

FAQs

Package last updated on 06 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts