mapbox-gl-draw 0,1 editorconfig eslint circleci npm

Draw tools for mapbox-gl-js

2 years after


Adds support for drawing and editing features on mapbox-gl.js maps.

Circle CI

All versions below 0.6.0 are no longer supported


npm install mapbox-gl-draw

Require or include mapbox-gl-draw after mapbox-gl.

Also include mapbox-gl-draw.css

<link href="mapbox-gl-draw.css" rel="stylesheet" />

Usage in your application

mapboxgl.accessToken = 'YOUR_ACCESS_TOKEN';

var map = new mapboxgl.Map({
  container: 'map',
  style: 'mapbox://styles/mapbox/streets-v8',
  center: [40, -74.50],
  zoom: 9

var Draw = mapboxgl.Draw();


See for complete reference.

Developing and testing

Install dependencies, build the source files and crank up a server via:

git clone [email protected]:mapbox/mapbox-gl-draw.git
npm install
npm start & open http://localhost:9966/debug/?access_token=<token>


npm run test


To github and npm

npm version (major|minor|patch)
git push --tags
git push
npm publish

To add to CDN add the js and css files from the dist folder to mapbox-gl-plugins.

Naming things

We're trying to follow standards when naming things. Here is a collection of links where we look for inspriation.

Related Repositories



awesome implementations of the Mapbox Vector Tile specification ...



Mapbox.js for Meteor apps ...



Text-based markup for Mapbox GL. ...



A curated list of awesome iOS ecosystem, including Objective-C and Swift Project ...



An "awesome" type curated list of React Native components, news, tools, and lear ...

Top Contributors

mcwhittemore kelvinabrokwa davidtheclark samanpwbb tristen drewbo jakepruitt scothis ghoshkaj averas nsamala tmcw edenh lukeelmers timiyay mayagao kiRach ilyamilosevic jimmont stepankuzmin conorhastings twelch mourner


package version
@mapbox/geojson-area ^0.2.1
@mapbox/geojson-normalize 0.0.1
@mapbox/geojsonhint ^2.0.0
geojson-extent ^0.3.2
hat 0.0.3
lodash.isequal ^4.2.0
point-geometry 0.1.0
xtend ^4.0.1
dev @mapbox/mapbox-gl-draw-static-mode ^1.0.1
@turf/centroid ^4.0.0
babel-core ^6.9.1
babel-eslint ^7.1.0
babel-plugin-__coverage__ ^11.0.0
babel-preset-es2015 ^6.3.13
babel-register ^6.5.2
babelify ^7.2.0
browserify ^14.1.0
browserify-middleware ^7.0.0
envify ^4.0.0
eslint ^4.2.0
eslint-config-mourner ^2.0.1
express ^4.13.4
mapbox-gl 0.38.0
mapbox-gl-js-mock ^0.28.0
mock-browser ^0.92.10
nyc ^11.0.2
opener ^1.4.1
sinon ^2.1.0
synthetic-dom-events ^0.3.0
tape ^4.0.0
uglify-js ^3.0.22
unassertify ^2.0.3
peer mapbox-gl >=0.27.0 <=0.38.0


-   v0.12.2 zip tar
-   v0.12.1 zip tar
-   v0.12.0 zip tar
-   v0.11.21 zip tar
-   v0.11.19 zip tar
-   v0.11.18 zip tar
-   v0.11.15 zip tar
-   v0.11.14 zip tar
-   v0.11.13 zip tar
-   v0.11.10 zip tar
-   v0.11.9 zip tar
-   v0.11.8 zip tar
-   v0.11.7 zip tar
-   v0.11.6 zip tar
-   v0.11.5 zip tar
-   v0.11.4 zip tar
-   v0.11.3 zip tar
-   v0.11.2 zip tar
-   v0.11.1 zip tar
-   v0.11.0 zip tar
-   v0.9.2 zip tar
-   v0.9.0 zip tar
-   v0.8.2 zip tar
-   v0.8.1 zip tar
-   v0.8.0 zip tar
-   v0.7.11 zip tar
-   v0.7.10 zip tar
-   v0.7.9 zip tar
-   v0.7.8 zip tar
-   v0.7.7 zip tar