https://github.com/urbica/react-map-gl-draw
React Component for Mapbox GL Draw
https://github.com/urbica/react-map-gl-draw
drawing mapbox-gl mapbox-gl-draw mapbox-gl-js react
Last synced: 3 months ago
JSON representation
React Component for Mapbox GL Draw
- Host: GitHub
- URL: https://github.com/urbica/react-map-gl-draw
- Owner: urbica
- License: mit
- Created: 2019-02-26T13:16:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-08-21T16:26:08.000Z (10 months ago)
- Last Synced: 2025-09-07T14:23:21.148Z (9 months ago)
- Topics: drawing, mapbox-gl, mapbox-gl-draw, mapbox-gl-js, react
- Language: JavaScript
- Homepage: https://urbica.github.io/react-map-gl-draw
- Size: 3.46 MB
- Stars: 53
- Watchers: 4
- Forks: 11
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Urbica React Draw tools for Mapbox GL JS
React Component to enhance [Urbica's React Map GL](https://github.com/urbica/react-map-gl) to use Mapbox Draw tools.
[Mapbox Draw tools](https://github.com/mapbox/mapbox-gl-draw) adds support for drawing and editing features on [mapbox-gl.js](https://github.com/mapbox/mapbox-gl-js) maps.
- [Examples](#examples)
- [Development](#development)
## Installation
npm i mapbox-gl @mapbox/mapbox-gl-draw @urbica/react-map-gl @urbica/react-map-gl-draw
## Examples
You can see examples & documentation [here](https://urbica.github.io/react-map-gl-draw/).
## Development
Install dependencies
npm install
Then start `react-styleguidist` by running
MAPBOX_ACCESS_TOKEN= npm start
where `` is a valid Mapbox [access token](https://www.mapbox.com/help/define-access-token/) or you can add it to `.env`
cp example.env .env
and start `react-styleguidist` by running
npm start