npm
npmjs.com › package › @react-google-maps › api
react-google-maps/api
You can now use the package react-google-maps-api-gatsby-example to test your changes.
» npm install @react-google-maps/api
Published Dec 16, 2025
Version 2.20.8
Videos
How to show directions on a map in React
32:50
How to use Google Maps API with React including Directions and ...
- YouTube
00:42
How I spin up a React app with a Google map in 5 minutes - YouTube
23:34
How to Use Google Maps API with Next.js, React - Including Places ...
03:37
Integration of Google Maps with React | How to add Google Maps ...
React Map GL
visgl.github.io › react-google-maps
Home | React Google Maps
Use a Google map as a fully controlled reactive component and use all the other features of the Google Maps JavaScript API.
CodeSandbox
codesandbox.io › examples › package › @react-google-maps › api
@react-google-maps/api examples - CodeSandbox
Use this online @react-google-maps/api playground to view and fork @react-google-maps/api example apps and templates on CodeSandbox.
Tomchentw
tomchentw.github.io › react-google-maps
React Google Maps Style Guide
You need to enable JavaScript to run this app
GitHub
github.com › google-map-react › google-map-react
GitHub - google-map-react/google-map-react: Google map library for react that allows rendering components as markers :tada: · GitHub
It uses an internal, tweakable hover algorithm - every object on the map can be hovered. It allows you to create interfaces like this example (You can scroll the table, zoom/move the map, hover/click on markers, and click on table rows)
Starred by 6.5K users
Forked by 856 users
Languages JavaScript 97.7% | HTML 1.8% | CSS 0.5%
GitHub
github.com › visgl › react-google-maps
GitHub - visgl/react-google-maps: React components and hooks for the Google Maps JavaScript API · GitHub
import {AdvancedMarker, APIProvider, Map} from '@vis.gl/react-google-maps'; function App() { const position = {lat: 53.54992, lng: 10.00678}; return ( <APIProvider apiKey={'YOUR API KEY HERE'}> <Map defaultCenter={position} defaultZoom={10} mapId="DEMO_MAP_ID"> <AdvancedMarker position={position} /> </Map> </APIProvider> ); } export default App; Please see our documentation or examples for more in-depth information about this library.
Starred by 1.9K users
Forked by 183 users
Languages TypeScript 91.4% | JavaScript 6.9%
Google
developers.google.com › google maps platform › web › maps javascript api › add a google map to a react app
Add a Google map to a React app | Maps JavaScript API | Google for Developers
import { APIProvider, Map, AdvancedMarker, MapCameraChangedEvent, Pin } from '@vis.gl/react-google-maps'; You should see customized Advanced Markers on the map: When using a lot of markers or markers that are in close proximity to one another, you may encounter an issue where the markers overlap or appear too crowded together, which causes a bad user experience. For example, after creating the markers in the last step, you may have noticed this:
GitHub
github.com › JustFly1984 › react-google-maps-api
GitHub - JustFly1984/react-google-maps-api: React Google Maps API · GitHub
Build interactive maps with markers, overlays, directions, and more using familiar React patterns. Hooks-based API - useJsApiLoader, useGoogleMap, and more · Full TypeScript support - Complete type definitions included · React 19 compatible - Works with the latest React features · Tree-shakeable - Only bundle what you use (~12kb gzipped) SSR friendly - Works with Next.js, Remix, and other frameworks · # npm npm install @react-google-maps/api # yarn yarn add @react-google-maps/api # bun bun add @react-google-maps/api
Starred by 2K users
Forked by 463 users
Languages TypeScript 95.9% | JavaScript 3.8% | CSS 0.3%
Google
developers.google.com › google maps platform › web › maps javascript api › react google maps library - place autocomplete
React Google Maps Library - Place Autocomplete | Maps JavaScript API | Google for Developers
It is not governed by the Google Maps Platform Support Technical Support Services Guidelines, the SLA, or the Deprecation Policy (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service). If you find a bug, or have a feature request, file an issue on GitHub . import React, { useState, useEffect, useRef } from 'react'; import { createRoot } from 'react-dom/client'; import { APIProvider, ControlPosition, MapControl, AdvancedMarker, Map, useMap, useMapsLibrary, useAdvancedMarkerRef, AdvancedMarkerRef } from '@vis.gl/react-google-maps'; const API_KEY = globalThis.GOOGLE_MAPS_API_KEY ??
React Map GL
visgl.github.io › interacting with the google maps javascript api
Interacting with the Google Maps JavaScript API | React Google Maps
function usePlacesService() { const ...y.PlacesService(map)); }, [placesLibrary, map]); return placesService; } const MyComponent = () => { const placesService = usePlacesService(); useEffect(() => { if (!placesService) return; // ......
GitHub
github.com › google-map-react › google-map-react › blob › master › API.md
google-map-react/API.md at master · google-map-react/google-map-react
Google map library for react that allows rendering components as markers :tada: - google-map-react/google-map-react
Author google-map-react
React Map GL
visgl.github.io › introduction
Introduction | React Google Maps
The map also maintains a lot of its own state-information and logic for updating it. For example, the virtual camera and the various ways to control it are fully contained within the Maps API, including all event-listeners that allow users to interact with the map.
LogRocket
blog.logrocket.com › home › integrating google maps with react
Integrating Google Maps with React - LogRocket Blog
June 4, 2024 - Developers can use the Google Maps API to implement real-time location sharing in React applications · Enhanced search capabilities: Apps that focus on helping people discover things need advanced search features. For example, Airbnb uses Google Maps’ superior search capabilities to allows users to search for accommodations based on their desired location and nearby attractions.
Google Maps Platform
mapsplatform.google.com › google maps platform › resources › blog › streamline the use of the maps javascript api within your react applications
Streamline the use of the Maps JavaScript API within your React applications – Google Maps Platform
January 14, 2025 - This description is then translated ... API. In some cases this is straightforward: when an <AdvancedMarker> component is added to React's component tree, the library creates a google.maps.AdvancedMarkerElement object under the hood and adds it to the map instance created for the <Map> component. When this component is later removed from the hierarchy, the marker is also removed from the map. In other cases—for the map itself for example—it gets ...
Medium
medium.com › @yukthihettiarachchissck › getting-started-with-google-maps-api-in-react-js-1390b19d18f0
Getting Started with Google Maps API in React.js | by Yukthi Hettiarachchi | Medium
June 27, 2023 - Read more-> https://medium.com/@yukthihettiarachchissck/how-to-generate-an-api-key-for-google-maps-api-46b076f5e3ca ... import React from 'react'; import { GoogleMap, useLoadScript, Marker } from '@react-google-maps/api'; const libraries = ['places']; const mapContainerStyle = { width: '100vw', height: '100vh', }; const center = { lat: 7.2905715, // default latitude lng: 80.6337262, // default longitude }; const App = () => { const { isLoaded, loadError } = useLoadScript({ googleMapsApiKey: 'YOUR_API_KEY', libraries, }); if (loadError) { return <div>Error loading maps</div>; } if (!isLoaded) { return <div>Loading maps</div>; } return ( <div> <GoogleMap mapContainerStyle={mapContainerStyle} zoom={10} center={center} > <Marker position={center} /> </GoogleMap> </div> ); }; export default App;
GitHub
github.com › google-map-react › google-map-react-examples
GitHub - google-map-react/google-map-react-examples: Examples for google-map-react library.
Marker and Info Window using React Component (source) Marker and Info Window using Google Maps API Object (source) Although I prefer yarn, you can use either yarn or npm: npm install or simply yarn · npm start or yarn start · Runs the app in development mode.
Starred by 148 users
Forked by 146 users
Languages JavaScript 91.1% | HTML 5.8% | CSS 3.1% | JavaScript 91.1% | HTML 5.8% | CSS 3.1%