Skip to content
J

JS API Loader

Load the Google Maps JavaScript API script dynamically

by googlemapsFree

#3002in Developer Tools
0In stores

Description

The Google Maps JavaScript API Loader is an npm package that loads the Google Maps JavaScript API script dynamically. It is an npm version o…

Highlights

  • Loads the Maps JavaScript API dynamically
  • setOptions and importLibrary functions
  • TypeScript type definitions available
  • Support for custom Maps HTML elements
  • Needs a Google Cloud project and API key

Ratings & Reviews

No ratings yet

Be the first to rate JS API Loader.

People also visit

R

react-google-maps

React.js Google Maps integration component

UI Libraries
Launch
R

@react-google-maps/api

React.js Google Maps API integration

UI Libraries
Launch
J

JS Three

Add ThreeJS objects to Google Maps

Utilities
Launch
G

Gmaps

Google maps for Jupyter notebooks

Utilities
Launch
L

Laravel Maps

Your laravel maps libary

Utilities
Launch
G

google-map-react

Universal google map react component

UI Libraries
Launch

JS API Loader FAQ

What does it do?

It loads the Google Maps JavaScript API script for you, through an npm package.

What do I need before using it?

A Google Cloud project with the Maps JavaScript API enabled, and an API key for that project.

How do I call it?

Call setOptions once with your key, then use importLibrary to load the parts of the Maps API you need.

Does it work with TypeScript?

Yes. Install the Maps type definitions alongside the package.

Can I wait for custom elements?

Yes. Use whenDefined to wait for a custom Maps element to upgrade after the library loads.

What are the best JS API Loader alternatives?

Popular alternatives to JS API Loader include docker-staticmaps, React Map GL and RankMap Pro - Lifetime Access. See all JS API Loader alternatives

Developer Stuff

Badges