react-map-gl
React components for MapLibre GL and Mapbox GL for interactive maps.
3D and graphics npm MIT
How react-map-gl is used
react-map-gl is a dependency in 11 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 26 projects, and what it is used with below comes from all of them. The most used alternative in our scan is React Leaflet (60 projects). Projects that use it most often also use React (100.0%), Lucide React (73.1%), Mapbox GL (65.4%).
react-map-gl popularity over time
Gid Score 52: downloads 66, use in agent projects 31, GitHub stars 47, downloads trend 60 (each 0-100). How it is calculated.
Often used with react-map-gl
| React | 100.0% of react-map-gl projects · 3.1× more than average |
|---|---|
| Lucide React | 73.1% of react-map-gl projects · 3.6× more than average |
| Mapbox GL | 65.4% of react-map-gl projects · 162.4× more than average |
| Tailwind CSS | 92.3% of react-map-gl projects · 2.8× more than average |
| Tailwind Merge | 69.2% of react-map-gl projects · 3.7× more than average |
| clsx | 65.4% of react-map-gl projects · 3.4× more than average |
| Radix UI | 53.8% of react-map-gl projects · 4.1× more than average |
| date-fns | 53.8% of react-map-gl projects · 5.2× more than average |
From all 26 projects in our scan that use react-map-gl, including the dependency samples.
By coding agent
| Cursor | 0.3% of projects set up for it |
|---|---|
| Claude Code | 0.2% of projects set up for it |
Share of public repos configured for each agent that list react-map-gl as a dependency.
Install
| Package | npm install react-map-gl |
|---|---|
| Main stacks | Next.js (15), TypeScript / JavaScript (8), Python (2), PHP (1) |
| Example projects | alkem-io/client-web, FixMyBerlin/trassenscout, evanhsu/firecrew |
Alternatives to react-map-gl
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside react-map-gl are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| React Leaflet npm React components for Leaflet maps enabling interactive mapping in React applications. |
61 | 60 (1.2%) | 2.5M | 5,605 | Hippocratic-2.1 |
More in 3D and graphics: Three.js Leaflet React Three Fiber @napi-rs/canvas Mapbox GL MapLibre GL Resvg-JS OGL