Skip to content

urbica/react-map-gl-draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

51d5a26 Β· Sep 24, 2020

History

43 Commits
Jun 15, 2020
Sep 24, 2020
Feb 28, 2019
Mar 4, 2019
Feb 28, 2019
Mar 1, 2019
Sep 24, 2020
Aug 19, 2019
Apr 17, 2019
Feb 26, 2019
Sep 24, 2020
Sep 24, 2020
Mar 5, 2019
Nov 26, 2019
Feb 26, 2019

Repository files navigation

Urbica React Draw tools for Mapbox GL JS

React Component to enhance Urbica's React Map GL to use Mapbox Draw tools.

Mapbox Draw tools adds support for drawing and editing features on mapbox-gl.js maps.

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.

Development

Install dependencies

npm install    

Then start react-styleguidist by running

MAPBOX_ACCESS_TOKEN=<TOKEN> npm start

where <TOKEN> is a valid Mapbox access token or you can add it to .env

cp example.env .env

and start react-styleguidist by running

npm start