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.
Stay organized with collections
Save and categorize content based on your preferences.
This example uses the
vis.gl/react-google-maps open
source library to render a Google map in a React app. The
vis.gl/react-google-maps library
is a collection of React components and hooks for the Google Maps JavaScript
API.
Git and Node.js are required to run this sample locally. Follow these instructions to install Node.js and NPM. The following commands clone, install dependencies and start the sample application.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-21 UTC."],[[["This example demonstrates how to render a basic Google Map in a React application using the `vis.gl/react-google-maps` library."],["The `vis.gl/react-google-maps` library provides React components and hooks for integrating the Google Maps JavaScript API, but it's important to note it is open source and not officially supported by Google."],["The example includes code snippets for TypeScript, JavaScript, CSS, and HTML, showcasing the implementation of the map within a simple web page."],["Users can try the sample directly in Google Cloud Shell or clone the repository and run it locally using Git and Node.js."],["While the library itself is open source, any Google Maps Platform services utilized within it are subject to the Google Maps Platform Terms of Service."]]],[]]