React Map GL
visgl.github.io › react-map-gl › examples
react-map-gl
Skip to main content · Examples · Mapbox · Clusters · Markers, Popups and Controls · Custom Cursor · Draggable Marker · Draw Polygon · Highlight By Filter · Geocoder
CodeSandbox
codesandbox.io › examples › package › react-map-gl
react-map-gl examples - CodeSandbox
react-map-gl-geocoder-v2-example Example usage of react-map-gl-geocoder which is a React wrapper for mapbox-gl-geocoder for use with react-map-gl
Videos
Chakra UI - MAP integration in React with react-map-gl and ...
19:11
react mapbox gl | Polygon layers tutorial - YouTube
react mapbox gl integration to show marker on map | React ...
Chakra UI - MAP integration in React with react-map-gl and deck-gl ...
10:33
Using Third-Party JS Libraries with React (Mapbox-GL-JS Map Markers) ...
23:32
Mapbox - Interactive maps in React - YouTube
React Map GL
visgl.github.io › react-map-gl
Home | react-map-gl
Comes with additional React interfaces such as context and hooks to support custom components. Use together with e.g. deck.gl to render performant and compelling 2D and 3D WebGL visualizations on top of your MapLibre GL JS and Mapbox GL JS based maps.
React Map GL
visgl.github.io › introduction
Introduction | react-map-gl
To manage the complexity of these applications, we fully embrace React and reactive programming. The stock mapbox-gl APIs are imperative. That is, you instruct the map to do something (for example, map.flyTo), and it will execute the command at its own pace.
GitHub
github.com › visgl › react-map-gl
GitHub - visgl/react-map-gl: React friendly API wrapper around MapboxGL JS · GitHub
React friendly API wrapper around MapboxGL JS. Contribute to visgl/react-map-gl development by creating an account on GitHub.
Starred by 8.4K users
Forked by 1.4K users
Languages TypeScript 65.5% | JavaScript 32.2%
npm
npmjs.com › package › react-map-gl
react-map-gl - npm
2 weeks ago - maplibre-gl · react · npm i react-map-gl · github.com/visgl/react-map-gl · github.com/visgl/react-map-gl#readme · 1,655,090 · 8.1.1 · MIT · 12 days ago · pessimistress · ibgreen · chrisgervang · felixpalmer · usefulthink · donmccurdy · Analyze security with SocketCheck bundle sizeView package healthExplore dependencies ·
» npm install react-map-gl
Published Apr 11, 2026
Version 8.1.1
React Map GL
visgl.github.io › get started
Get Started | react-map-gl
import * as React from 'react'; import Map from 'react-map-gl/mapbox'; // If using with mapbox-gl v1: // import Map from 'react-map-gl/mapbox-legacy'; import 'mapbox-gl/dist/mapbox-gl.css'; function App() { return ( <Map mapboxAccessToken="<Mapbox access token>" initialViewState={{ longitude: -122.4, latitude: 37.8, zoom: 14 }} style={{width: 600, height: 400}} mapStyle="mapbox://styles/mapbox/streets-v9" /> ); }
GitHub
github.com › urbica › react-map-gl
GitHub - urbica/react-map-gl: React Component Library for Mapbox GL JS · GitHub
Custom layers allow a user to render directly into the map's GL context using the map's camera. Here is an Uber deck.gl usage example. import React from 'react'; import MapGL, { CustomLayer } from '@urbica/react-map-gl'; import { MapboxLayer } from '@deck.gl/mapbox'; import { ScatterplotLayer } from '@deck.gl/layers'; import 'mapbox-gl/dist/mapbox-gl.css'; const myDeckLayer = new MapboxLayer({ id: 'my-scatterplot', type: ScatterplotLayer, data: [{ position: [-74.5, 40], size: 1000 }], getPosition: (d) => d.position, getRadius: (d) => d.size, getColor: [255, 0, 0] }); <MapGL style={{ width: '100%', height: '400px' }} mapStyle='mapbox://styles/mapbox/light-v9' accessToken={MAPBOX_ACCESS_TOKEN} latitude={40} longitude={-74.5} zoom={9} > <CustomLayer layer={myDeckLayer} /> </MapGL>;
Starred by 424 users
Forked by 49 users
Languages JavaScript
React Map GL
visgl.github.io › adding custom data
Adding Custom Data | react-map-gl
import * as React from 'react'; import Map, {Source, Layer} from 'react-map-gl/maplibre'; import type {CircleLayer} from 'react-map-gl/maplibre'; import type {FeatureCollection} from 'geojson'; const geojson: FeatureCollection = { type: 'FeatureCollection', features: [ { type: 'Feature', geometry: { type: 'Point', coordinates: [-122.4, 37.8] }, properties: {title: '915 Front Street, San Francisco, California'} } ] }; const layerStyle: CircleLayer = { id: 'point', type: 'circle', paint: { 'circle-radius': 10, 'circle-color': '#007cbf' } }; function App() { return ( <Map initialViewState={{ longitude: -122.45, latitude: 37.78, zoom: 14 }}> <Source id="my-data" type="geojson" data={geojson}> <Layer {...layerStyle} /> </Source> </Map> ); }
Scaler
scaler.com › home › topics › react › react-map-gl
react-map-gl - Scaler Topics
February 16, 2023 - Let’s take a quick example and see. To implement this we need deck.gl, another package developed by the Uber visualization team, this enhances the readability of the map! ... Let’s take a look at the code next. To start with, we have the <Map /> component as we had in our earlier case. Next, from react-map-gl-geocoder we import our Geocoder component, which returns the location coordinates by calling the Mapbox API when we provide the name of a place to the API.
Snyk
snyk.io › advisor › react-map-gl › react-map-gl code examples
Top 5 react-map-gl Code Examples | Snyk
uber / react-map-gl / test / src / utils / map-state.spec.js View on Github
CodeSandbox
codesandbox.io › examples › package › react-mapbox-gl
react-mapbox-gl examples - CodeSandbox
historic-country-borders-appThis is map with a timeline to show what country borders were like in the past
React Map GL
visgl.github.io › what's new
What's new | react-map-gl
New Components: Layer and Source have been added to provide better React parity with the Mapbox GL JS API. Viewport transition: transitionDuration can be set to 'auto' when using FlyToInterpolator. New Example: Add an example with drawing library react-map-gl-draw.
Ojlamb
ojlamb.com › React-Map-GL
Working with react-map-gl - Owen Lamb
Working with react-map-gl was enjoyable. It did a lot out of the box, and I was able to create some compelling geospatial visualizations with data-driven styling. Development and testing the application with Enzyme + Jest was also straight forward. One limitation however was the ablility to easily dynamically add/remove and toggle on and off layers required by many other web mapping applications. It is doable looking at this example ...
GitHub
github.com › visgl › react-map-gl › blob › master › docs › get-started › get-started.md
react-map-gl/docs/get-started/get-started.md at master · visgl/react-map-gl
You may find complete project setups in get-started examples. Using react-map-gl requires node >= 12 and react >= 16.3.
Author visgl