react-map-gl
A strong pick. 8th of 8 map libraries.
react-map-gl is the main React wrapper for MapLibre GL JS and Mapbox GL JS, with separate entry points for each renderer. It is a solid pick for React apps that need vector maps. Work on it is slow but steady, and it only covers rendering, so you still need MapLibre or Mapbox underneath and a tool like Turf for geometry.
Best for: React and Next.js teams that want declarative MapLibre or Mapbox vector maps with markers, sources and layers as components.
Scores
Overall7.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
For a React app that needs vector maps, react-map-gl with the MapLibre entry point is the clear pick. It is not a full map library on its own, and its maintenance is slow, with open bugs on edge cases. Its share is growing a bit below the median. It ranks below MapLibre and Leaflet as a category default, but it is the best choice for React projects built on GL maps.
- npm downloadsLast4Weeks: Large use, but growth is slightly below the median
- pkgpulse.com/guides/mapbox-vs-leaflet-vs-maplibre-interactive-maps-2026: Recommended pairing with MapLibre for React
- github.com/visgl/react-map-gl/releases: Steady but slow releases through 2026
GPT-6.2 Sol: 7.7, likely 6.6 to 8.7
Pick react-map-gl when a React app needs its map camera and layers to follow application state. MapLibre GL JS is the more flexible choice for framework-neutral vector maps, while Leaflet is a simpler fit for basic maps with markers and popups. Verified use in transit and railway software supports the recommendation, while the light maintenance cadence and below-median download growth keep it below the category leaders.
- visgl.github.io/react-map-gl/docs/get-started/state-management: Shows how React state can control the camera.
- maplibre.org/maplibre-gl-js/docs: Documents the standalone vector map engine.
- leafletjs.com: Shows a lightweight setup for tile maps, markers, and popups.
- raw.githubusercontent.com/carrismetropolitana/website/production/apps/frontend/package.json: Confirms production use of the MapLibre adapter.
- raw.githubusercontent.com/OpenRailAssociation/osrd/dev/front/package.json: Confirms use of the current main package in OSRD.
- github commitsLastYear, releasesLastYear; npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio: Modest maintenance activity and download growth below the catalog median.
Needed by many4.1
How many developers need a tool for this job?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
Interactive maps are a clear but limited need among web developers. This package serves only React users who want WebGL vector maps. It does not cover geometry work such as distances or shapes, so it is narrower than its category.
- github description: React wrapper around Mapbox GL JS and MapLibre
- pkgpulse.com/guides/mapbox-vs-leaflet-vs-maplibre-interactive-maps-2026: Positioned as the React layer over MapLibre or Mapbox; Leaflet suggested for simple maps
GPT-6.2 Sol: 3.7, likely 2.6 to 4.9
Interactive maps are a distinct use case within web development, and this wrapper serves React apps using one of two GL renderers. React is widely used among State of JavaScript respondents, but the survey leaves the share of developers who need this kind of map uncertain.
- 2025.stateofjs.com/en-US/libraries: 83.6% of respondents who answered the React question reported using it.
- visgl.github.io/react-map-gl/docs/get-started: Browser setup targets React with MapLibre GL JS or Mapbox GL JS.
Helps a lot7.6
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is the standard React binding for GL maps. It has typed components, a controlled camera and support for MapLibre v6 and globe view. Open bugs remain around reuseMaps, projections, terrain and bundlers. The rendering power comes from MapLibre or Mapbox, so the wrapper adds convenience rather than new features.
- github.com/visgl/react-map-gl/releases: 8.1.x adds MapLibre v6 support and GlobeControl, and fixes crash and tree-shaking issues
- github.com/visgl/react-map-gl/issues: Open bugs: reuseMaps infinite loop, projection stack overflow, Next.js crashes
- npm hasTypes: Ships TypeScript types
- github.com/visgl/react-map-gl/blob/master/docs/upgrade-guide.md: v8 split the endpoints and removed ref methods on Source and Layer
GPT-6.2 Sol: 8.2, likely 7.0 to 9.1
Version 8.1.3 provides typed map components and clear examples for both camera modes, giving developers and coding agents a concrete pattern to follow. Rendering performance depends heavily on the underlying engine, and independent tests of older engine versions found that Leaflet and OpenLayers rendered small GeoJSON datasets faster. Separate renderer setup and add-ons for spatial calculations add work, and direct measurements of wrapper overhead and agent accuracy are scarce.
- visgl.github.io/react-map-gl/docs/get-started/state-management: Camera examples cover both state modes and use Turf for a geofence.
- visgl.github.io/react-map-gl/docs/api-reference/maplibre/map: Documents map props, events, controls, and access to the underlying renderer.
- github.com/visgl/react-map-gl/releases/tag/v8.1.3: Fixes a terrain crash and enables tree shaking.
- mdpi.com/2220-9964/14/9/336: Independent benchmark compares the renderers directly using GeoJSON.
- reddit.com/r/reactjs/comments/1lfxd43/free_alternative_to_google_maps_js_api_in_react: A developer reports a smooth integration for a data-heavy weather map.
Holds up over time6.4
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
Releases continue, with 8.1.3 in September 2026 and a push in October. The pace is slow, with 18 commits a year, and much of the work seems to rest on one or two vis.gl maintainers. The project sits under the vis.gl and OpenJS umbrella, and the ecosystem is moving towards MapLibre, which this package supports well.
- github commitsLastYear: 18 commits, 3 releases in the last year
- scorecard Maintained: Maintained check scores 10
- github.com/visgl/react-map-gl/issues: Many recent issues have no comments yet
- vis.gl / OpenJS Foundation: Project is part of the vis.gl suite with deck.gl
GPT-6.2 Sol: 6.7, likely 5.4 to 7.8
Three releases in the past year brought MapLibre GL JS 6 support and targeted fixes, though 18 commits put the wrapper well below its most active peers. The project has formal governance and two listed maintainers, and the v8 upgrade required import changes. Limited evidence on funding, review turnaround, and who can cut releases widens the two-year outlook.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests: 18 commits, three releases, 78 open issues, and 31 open pull requests.
- peers commitsLastYear: MapLibre GL JS had 1,575 commits and OpenLayers had 774.
- github.com/visgl/react-map-gl/releases: The 8.1 series added MapLibre 6 support and fixed camera and style bugs.
- visgl.github.io/react-map-gl/docs/contributing: Lists two maintainers and a technical steering committee.
- visgl.github.io/react-map-gl/docs/upgrade-guide: The v8 migration changed imports by renderer.
Used widely6.2
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It had 12.8M downloads in the last 4 weeks, up from 3.7M a year before. That ratio of 3.46 is below the median of 4.1, so it is slowly losing ground. It has 7,548 dependent repos, more than MapLibre, deck.gl and Turf, though far fewer than Leaflet or OpenLayers. It still has no React rival for GL maps.
- npm downloadsLast4Weeks: 12.8M now vs 3.7M a year ago; ratio 3.46 is below the 4.1 median
- dependents repos: 7,548 repos and 366 packages
- github stars: 8.5k stars
GPT-6.2 Sol: 5.3, likely 4.1 to 6.5
Ecosyste.ms found 7,548 dependent repositories, ahead of MapLibre GL JS in this sample and well behind Leaflet and OpenLayers. Four-week npm downloads rose from 3.71 million to 12.81 million, or 3.46×, below the 4.1× catalog median and below Leaflet and MapLibre GL JS. That suggests a loss of relative ground, while automated installs and direct use of the scoped adapter make the number of projects choosing the wrapper hard to pin down.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 3.46× against the catalog benchmark of 4.1×.
- dependents repos, packages; peers dependentRepos: 7,548 repositories and 366 packages in the observed sample.
- github stars; bluesky posts; hackerNews top: 8,513 stars, zero tracked Bluesky links, and one relevant HN post with no comments.
- raw.githubusercontent.com/carrismetropolitana/website/production/apps/frontend/package.json: Production frontend installs the scoped MapLibre adapter directly.
Vouched for6.6
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
It comes from the vis.gl team, which began at Uber, and kepler.gl and other deck.gl-based tools use it. Independent 2026 guides recommend react-map-gl with MapLibre for new React projects. There is little survey data and almost no discussion on Hacker News or Bluesky.
- pkgpulse.com/guides/mapbox-vs-leaflet-vs-maplibre-interactive-maps-2026: Recommends react-map-gl/maplibre for new open-renderer projects
- blog.logrocket.com/react-map-library-comparison: Independent comparison lists it among the main React map options
- bluesky posts: 0 posts; HN 1 story with 1 point
- kepler.gl / Uber origin: Used in vis.gl production tools
GPT-6.2 Sol: 7.2, likely 6.0 to 8.2
OpenRailAssociation uses 8.1.3 in its railway design frontend, and Carris Metropolitana uses the same version of the MapLibre adapter on its public transit site. Developers also recommend the combination for React maps, including a report from a data-heavy weather app. The evidence comes from several independent users, with limited survey or benchmark data specific to the wrapper.
- raw.githubusercontent.com/OpenRailAssociation/osrd/dev/front/package.json: The OSRD frontend pins react-map-gl 8.1.3.
- raw.githubusercontent.com/carrismetropolitana/website/production/apps/frontend/package.json: The public transit site pins @vis.gl/react-maplibre 8.1.3.
- reddit.com/r/reactjs/comments/1lfxd43/free_alternative_to_google_maps_js_api_in_react: A developer reports good results with raster and vector data in a weather map.
- reddit.com/r/reactjs/comments/1mx0oy1/map_libraries: React discussion recommends the MapLibre pairing and identifies simpler use cases for Leaflet.
Safe7.9
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has no advisories ever, only 2 runtime dependencies and the MIT licence. The Scorecard is 6.3, with weak checks on token permissions, SAST, fuzzing and CII. The map renderers are optional peer dependencies, so they carry their own risk.
- advisories total: 0 advisories
- npm dependencies: 2 dependencies
- scorecard score: 6.3; Token-Permissions 0, SAST 0
- npm license: MIT
GPT-6.2 Sol: 7.7, likely 6.4 to 8.7
The MIT package pins two adapters from the same project, and OSV lists zero advisories for the main package. Releases run tests in a tag-triggered GitHub Actions workflow with identity-token permission for publishing. OpenSSF scores token permissions and static analysis poorly, and the chosen renderer adds its own dependency and licensing considerations.
- advisories total, last24Months: OSV lists zero advisories for the main package.
- scorecard score, checks: 6.3 overall, with zeroes for token permissions, static analysis, and fuzzing.
- raw.githubusercontent.com/visgl/react-map-gl/v8.1.3/modules/main/package.json: MIT license, two pinned sibling adapters, and optional renderer peers.
- raw.githubusercontent.com/visgl/react-map-gl/v8.1.3/.github/workflows/release.yml: Version-tag workflow builds and tests before publishing.
Good
- Separate react-map-gl/maplibre and react-map-gl/mapbox entry points let you use the free MapLibre renderer or Mapbox.
- Declarative Map, Source, Layer, Marker and Popup components with a controlled camera fit React's state model.
- It ships TypeScript types, has only 2 dependencies, has no known advisories and uses the MIT licence.
- It is maintained under vis.gl next to deck.gl, and the two work well together for data overlays.
Bad
- It has only 18 commits and 3 releases in the last year, and many recent issues get no reply.
- It only works with React and still needs maplibre-gl or mapbox-gl underneath.
- Open bugs cover reuseMaps loops, projection and terrain edge cases, and crashes with Next.js and Turbopack.
- The v8 upgrade broke some code, such as removing ref methods on Source and Layer.
The numbers
- npm downloads, 4 weeks
- 13M ×3.5 in a year
- GitHub stars
- 8.5k
- Commits, 12 months
- 18
- npm version
- 8.1.3 Sept 2026
- Versions, 12 months
- 3
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 6.3 out of 10, Oct 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (visgl/react-map-gl), npm (react-map-gl), OSV and the OpenSSF Scorecard.