JamesLMilner/terra-draw
A library for drawing on maps that supports Mapbox, MapLibre, Google Maps, OpenLayers and Leaflet out the box observed · 2026-09-01
Health v2 · maintenance only
99/100
- Activity 100
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 16
- age_days: 1510
- days_rel: 25
- days_push: 2
- n_releases_24m: 2
Adoption not part of the score
1093 stars · 115 forks observed · 2026-09-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Terra Draw is a TypeScript library for drawing shapes and geometries on web maps, with built-in adapters for Leaflet, OpenLayers, MapLibre GL JS, Google Maps, Mapbox GL JS, and ArcGIS JS SDK. It centralizes drawing logic into reusable modes (point, line, polygon, geodesic, etc.) that work consistently across mapping libraries.
Use cases
- draw polygons on a map to define areas of interest
- let users sketch routes or lines on a Leaflet map
- add drawing tools to a MapLibre GL JS application
- capture GeoJSON geometry input from users on Google Maps
- build a map annotation or measurement feature
- edit existing GeoJSON features on a web map
- draw geodesic lines that account for earth curvature
When to choose
- you need consistent drawing functionality across multiple mapping libraries
- you want out-of-the-box drawing modes without building from scratch
- your app uses MapLibre, Mapbox, Leaflet, OpenLayers, Google Maps, or ArcGIS JS
- you need GeoJSON output from user-drawn geometries
When to avoid
- you use a mapping library without a supported adapter
- you need advanced CAD-style editing or 3D drawing
- you only need static map rendering with no user interaction
Facets
library · maturity active
ui-components graphics geospatial web-development frontend browser map-drawing geo leaflet mapbox-gl maplibre google-maps openlayers arcgis polygon-drawing geodesic maps geospatial javascript typescript
2 sources
- readme: https://github.com/JamesLMilner/terra-draw · fetched 2026-09-01 · 8fcf69d00f1a
- homepage: https://terradraw.io · fetched 2026-08-29 · 97049b2564b5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| JamesLMilner/terra-draw | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="JamesLMilner/terra-draw")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem