Skip to content
R

react-google-maps

React.js Google Maps integration component

by tomchentwFree

#373in UI Libraries
0In stores

Description

react-google-maps is a set of React components that wrap the Google Maps JavaScript API v3. It handles prop passing, turns map events into c…

Highlights

  • React components for Google Maps JavaScript API v3
  • GoogleMap and Marker components
  • Event handlers passed as callbacks
  • withGoogleMap and withScriptjs higher-order components
  • Live editable demos for each component

Ratings & Reviews

No ratings yet

Be the first to rate react-google-maps.

People also visit

G

google-map-react

Universal google map react component

UI Libraries
Launch
G

google-map-react

Isomorphic component that allows rendering react components on a google map

UI Libraries
Launch
G

google-maps-react-markers

Google Maps library that accepts markers as react components, works

UI Libraries
Launch
R

@react-google-maps/api

React.js Google Maps API integration

UI Libraries
Launch
R

react-mapbox-gl

A React binding of mapbox-gl-js

UI Libraries
Launch
R

react-map-gl

A React wrapper for MapboxGL-js and overlay API

UI Libraries
Launch

react-google-maps FAQ

What is react-google-maps?

It is a library of React components that wrap the Google Maps JavaScript API, so you can build maps with React components.

How do I install it?

Run npm install --save react-google-maps or yarn add react-google-maps in your project.

How does a marker get on the map?

Render a Marker inside your GoogleMap component. It is mounted on the map while rendered and removed when you stop rendering it.

Why do I need withGoogleMap?

Wrapping a component with withGoogleMap creates the DOM instances the map needs. The guide shows this as step two of building a custom map.

What does withScriptjs do?

It loads the Google Maps script before the map component renders, so you do not have to add the script tag yourself.

Can I see examples before I install?

Yes. The documentation site has live demos for each component, and you can edit the code in the browser.

Is it a Google product?

No. It is a community library that wraps Google's API. Limits that come from Google Maps itself are not changed by the library.

What are the best react-google-maps alternatives?

Popular alternatives to react-google-maps include google-map-react, google-map-react and google-maps-react-markers. See all react-google-maps alternatives

Developer Stuff

Badges