Open source libraries Stay organized with collections Save and categorize content based on your preferences.
Many open source libraries are available to provide additional capabilities forMaps JavaScript API. These libraries are versioned onGitHub and published tonpm.
Web Components
UseMaps JavaScript API WebComponents to quickly add mapsfunctionality to your websites. Web Components encapsulate boilerplate code,best practices, and responsive design, reducing complex map UIs into what iseffectively a single HTML element.
Extended Component Library (Beta)
Google Maps Platform Extended ComponentLibrary is a set of Web Components that helps developers build better mapsfaster, and with less effort.
npm i @googlemaps/extended-component-library
Loading the API
Modern web applications may benefit from using the following libraries to load the Maps JavaScript API.
Using TypeScript
TypeScript users can get started with the following packages. Check out theusing TypeScript guide for additional information.
Using React
React users can get started with the following packages.
React Google Maps Library
Components and hooks to integrate the Maps JavaScript API into React applications.
npm i -D @vis.gl/react-google-maps
React wrapper
A wrapper component to declaratively load the Maps JavaScript API.
npm i @googlemaps/react-wrapper
Extending markers and overlays
The following libraries extend classes such as Marker and OverlayView.
Marker clusterer
Creates and manages per-zoom-level clusters for large amounts of markers.
npm i @googlemaps/markerclusterer
Marker manager
Adds and removes markers based upon map viewport changes.
npm i @googlemaps/markermanager
Web map service (WMS)
Add Open Geospatial Consortium (OGC) layers such as a Web Map Service (WMS) to a map.
npm i @googlemaps/ogc
Testing and linting
Use these libraries to ensure best practices and make testing easier for the Maps JavaScript API.
Node.js Libraries
Note: The following librariesdo not work in browser environments and are implemented for Node.js and server environments.Node.js client library
Node.js client library for making calls from cloud functions or serverside code.
npm i @googlemaps/google-maps-services-js
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-18 UTC.