# mapbox/mapbox-gl-draw

Draw tools for mapbox-gl-js

Repository: https://github.com/mapbox/mapbox-gl-draw
Canonical: https://ross.abutalabs.com/products/mapbox-gl-draw
Homepage: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
Language: JavaScript
License: ISC
License Family: permissive
Topics: mapbox-gl, javascript, drawing, mapbox-gl-js
Last push: 2026-08-24T11:43:05+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 23, longevity 100
- inputs: {"age_days": 4236, "days_push": 9, "days_rel": 303, "gap_med": 334, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1083, forks 612 (observed 2026-08-28T04:03:31.187499+00:00)

## What it is
A Mapbox GL JS plugin that adds drawing and editing controls for geographic features (points, lines, polygons) directly on interactive web maps. It provides customizable draw modes and integrates as a map control.

## Use cases
- let users draw polygons on a map to define an area of interest
- add drawing tools to a mapbox-gl-js application
- allow editing and deleting map features interactively
- measure area of a user-drawn polygon
- collect geofence boundaries from end users
- sketch routes or lines on a web map

## When to choose
- you are building with mapbox-gl-js and need interactive feature drawing or editing
- you want a battle-tested plugin with custom mode support for advanced draw interactions

## When to avoid
- you use Leaflet, OpenLayers, or another non-Mapbox map library
- you only need static map display without user drawing
- you need a standalone drawing canvas unrelated to maps

## Facets
- artifact type: plugin
- maturity: active
- function: ui-components, geospatial, graphics
- domain: web-development, frontend
- platform: browser
- tags: mapbox-gl-js, drawing-tools, gis, map-plugin, geometry-editing, maps, javascript, nodejs

## Member repositories
- mapbox/mapbox-gl-draw (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:31.187499+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:51:11.526451+00:00, confidence not recorded.
  - readme: https://github.com/mapbox/mapbox-gl-draw (fetched 2026-08-28T04:03:31.187499+00:00, sha 64814eee3f7d)
  - homepage: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/ (fetched 2026-08-29T12:53:10.007809+00:00, sha 1a46d12cac57)
  - site_page: https://docs.mapbox.com (fetched 2026-08-29T12:53:10.016715+00:00, sha 6b830788a899)
  - site_page: https://docs.mapbox.com/ask-ai (fetched 2026-08-29T12:53:10.018588+00:00, sha 7e710e32fef4)
  - registry_npm: https://registry.npmjs.org/mapbox-gl-draw (fetched 2026-08-29T12:53:10.020227+00:00, sha 148f89c46620)
- Data as of 2026-08-30T08:39:29.467469+00:00.
