Description
google-map-react is a React component for Google Maps that lets you render any React component on the map. It is written as a thin layer over a small part of the Google Maps API, so your markers and overlays are ordinary React components with their own state and props. The README says it is fully isomorphic and can render on a server, and that it can render map components in the browser even when the Google Maps API has not yet loaded. It uses an internal hover algorithm that can be tuned, so every object placed on the map can respond to hover. The README shows how to add a map with latitude and longitude properties, and includes a troubleshooting section for when the map does not appear. The library has an example of a table linked to map markers, where scrolling the table, moving the map and clicking rows stay in sync. The project is public on GitHub. It suits React developers who want map markers and popups built with their own components.…
Highlights
- Render any React component as a map marker
- Server-side rendering support
- Tunable hover on every map object
- Works with the Google Maps API
Ratings & Reviews
No ratings yet
Be the first to rate google-map-react.
People also visit
google-map-react FAQ
What is google-map-react?
A React component for Google Maps that lets you render React components on the map.
Is it free?
The repository is public on GitHub, and the README does not list prices. Google Maps itself has its own terms and billing.
Can it render on the server?
Yes. The README says it is fully isomorphic and can render on a server.
How do I start?
The README says that in the simple case you add lat and lng properties to the component.
Does hover work on markers?
Yes. The README says every object on the map can be hovered, and the hover algorithm is tweakable.
What are the best google-map-react alternatives?
Popular alternatives to google-map-react include react-google-maps, google-map-react and @react-google-maps/api. See all google-map-react alternatives




















