UNPKG

load-google-maps-api

Version:

A lightweight Promise-returning helper for loading the Google Maps JavaScript API

48 lines (27 loc) 590 B
# Changelog ## 2.0.0 - Bump dependencies - Use modern syntax, namely let/const and default parameters ## 1.3.1 - Support repeated/duplicate calls by caching and returning the initial Promise ## 1.3.0 - Return `google.maps` if previously-loaded ## 1.2.0 - Remove check on `window` - Add `standard` - Bump dependencies ## 1.1.0 - Add a simple CodePen - Use `prettier-standard` - Add a `weight` script ## 1.0.1 - Add `channel` option ## 1.0.0 - Major rewrite - Upgrade dependencies ## 0.0.3 - Add `region` option ## 0.0.2 - Add `language` option ## 0.0.1 - Initial release