React Map Gl

React friendly API wrapper around MapboxGL JS
Alternatives To React Map Gl
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Superset54,2691619 hours ago6April 18, 20231,493apache-2.0TypeScript
Apache Superset is a Data Visualization and Data Exploration Platform
Recharts21,0893,5021,04620 hours ago215June 22, 2023482mitTypeScript
Redefined chart library built with React and D3
Dash19,3818045442 days ago168June 29, 2023775mitPython
Data Apps & Dashboards for Python. No JavaScript Required.
Visx17,764864 days ago32July 11, 2023136mitTypeScript
🐯 visx | visualization components
Nivo11,8801511914 days ago69May 07, 2023113mitTypeScript
nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
Victory10,48968623214 days ago236June 13, 2023289otherJavaScript
A collection of composable React components for building interactive data visualizations
React Vis8,5015241404 months ago108June 08, 2023338mitJavaScript
Data Visualization Components
React Map Gl7,30872532812 days ago280July 20, 202350otherTypeScript
React friendly API wrapper around MapboxGL JS
React Chartjs 26,1043,3627864 days ago84January 09, 202384mitTypeScript
React components for Chart.js, the most popular charting library
Bizcharts6,0156166847 months ago238November 30, 2022333mitTypeScript
Powerful data visualization library based on G2 and React.
Alternatives To React Map Gl
Select To Compare

Alternative Project Comparisons

version build downloads

react-map-gl | Docs

react-map-gl is a suite of React components designed to provide a React API for mapbox-gl or maplibre-gl. More information in the online documentation.

See our Design Philosophy.


Using react-map-gl requires react >= 16.3.

npm install --save react-map-gl mapbox-gl


import * as React from 'react';
import Map from 'react-map-gl';

function App() {
  return <Map
      longitude: -100,
      latitude: 40,
      zoom: 3.5
    style={{width: 600, height: 400}}

Using Mapbox Tokens

Starting with v2.0, mapbox-gl requires a Mapbox token for any usage, with or without the Mapbox data service. See about Mapbox tokens for your options.

To show maps from a service such as Mapbox you will need to register on their website in order to retrieve an access token required by the map component, which will be used to identify you and start serving up map tiles. The service will be free until a certain level of traffic is exceeded.

There are several ways to provide a token to your app, as showcased in some of the example folders:

  • Provide a mapboxAccessToken prop to the map component
  • Set the MapboxAccessToken environment variable (or set REACT_APP_MAPBOX_ACCESS_TOKEN if you are using Create React App)
  • Provide it in the URL, e.g ?access_token=TOKEN


See contribution guide.


react-map-gl is part of, an Urban Computing Foundation project.

Development is also supported by

Popular Reactjs Projects
Popular Data Visualization Projects
Popular Web User Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Data Visualization
Mapbox Gl
Mapbox Gl Js