Security notice: We have become aware of a security issue that may be affecting websites using specific third-party libraries (including polyfill.io). This issue can sometimes redirect visitors away from the intended website without website owner knowledge or permission. Many of our JavaScript samples previously included a polyfill.io script declaration. We have removed this from our samples. If you have used our JavaScript samples that contain this declaration, we recommend removing the declaration.
Announcement: New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
The Maps JavaScript API is a client-side web API that lets you create maps to
show locations anywhere in the world, add your own custom graphics, animations, and interactive
custom data layers, and create location-aware features by using the Places API in the
Maps JavaScript API. With the Maps JavaScript API, you can:
Create 2D and 3D maps to show locations anywhere in the world.
Add customizable markers to indicate locations on a map.
Use the Places library to get location data for over 200 million places.
Customize the map's style and colors.
Add your own interactive custom data layers.
Display administrative boundaries and make them interactive.
Add custom 2D and 3D graphics and animated content to your maps.