Google Maps JavaScript API Loader (Promise-based)
JSON →The `load-google-maps-api` package (current stable version 2.0.2) provides a lightweight, promise-returning utility for dynamically loading the Google Maps JavaScript API. It modernizes the traditional API loading process by abstracting away the requirement for a global callback function, which can be cumbersome and less compatible with contemporary JavaScript bundlers like Webpack or Browserify. Instead, this module returns a Promise that resolves with the `google.maps` object upon successful API load, or rejects if a configurable timeout is exceeded. Developers can pass an options object to configure various aspects of the API, including the API key, desired language, region, specific API version, and supplemental libraries, offering a cleaner and more modular approach to integrating Google Maps into client-side web applications. Its release cadence is generally stable, with updates typically addressing Google Maps API changes or minor enhancements.
Traffic · last 30 days ↑67% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany