Description
react-mapbox-gl is a React wrapper for mapbox-gl-js, the Mapbox GL JavaScript library for interactive maps. It gives you two kinds of components. Proxy components sit between React and the Mapbox API. They include the map component ReactMapboxGL, layers such as symbol, line, fill, circle, raster, fill-extrusion, background and heatmap, and a GeoJSON source. DOM components are normal React components, including zoom, scale and rotation controls, and Marker, Popup and Cluster, which are projected onto the map. The documentation explains a design choice: zoom, bearing and pitch are passed as arrays, because if those values change in mapbox-gl-js and your state is not updated, the state falls out of sync with the viewport. The getting started section asks you to add the Mapbox CSS to your index.html. The project has documentation and demos, and it is public on GitHub under the alex3165 account. It suits React developers who want to build Mapbox maps as React components.…
Highlights
- React wrapper for mapbox-gl-js
- Layers for symbols, lines, fills, circles, raster and heatmaps
- GeoJSON source
- Zoom, scale and rotation controls
- Marker, Popup and Cluster components
Ratings & Reviews
No ratings yet
Be the first to rate react-mapbox-gl.
People also visit

google-map-react
Isomorphic component that allows rendering react components on a google map
react-mapbox-gl FAQ
What is react-mapbox-gl?
A React binding for mapbox-gl-js, the Mapbox GL JavaScript map library.
What kinds of components are there?
Proxy components that wrap the Mapbox API, such as the map, layers and sources, and DOM components such as controls, Marker, Popup and Cluster.
Why are zoom, bearing and pitch arrays?
The README says that if those values change in mapbox-gl-js and your state is not updated, the state falls out of sync with the viewport.
Where are the demos?
The README links the documentation and demos site.
Is it open source?
Yes. The repository is public on GitHub under alex3165.
What are the best react-mapbox-gl alternatives?
Popular alternatives to react-mapbox-gl include react-map-gl, react-google-maps and google-map-react. See all react-mapbox-gl alternatives

















