# react-map-gl: 7.4 out of 10

A strong pick. 8th of 8 in [Map libraries](https://elestia.ai/opensource/maps/index.md).

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

- **Overall: 7.4** (likely 6.3 to 8.4)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.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.
- **Needed by many: 4.1** (likely 3.1 to 5.2)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.7): 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.
- **Helps a lot: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.2): 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.
- **Holds up over time: 6.4** (likely 5.0 to 7.7)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (6.7): 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.
- **Used widely: 6.2** (likely 5.1 to 7.3)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (5.3): 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.
- **Vouched for: 6.6** (likely 5.3 to 7.9)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (7.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.
- **Safe: 7.9** (likely 6.7 to 8.9)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.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.

## 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

- Downloads, 4 weeks: 13M
- In a year: ×3.5
- GitHub stars: 8.5k
- Commits, 12 months: 18
- Last npm release: Sept 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/visgl/react-map-gl
- npm: https://www.npmjs.com/package/react-map-gl

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
