[FOSS4G 2025 Auckland] maplibre-gl-terradraw - new drawing plugin for maplibre-gl-js
Event: FOSS4G 2025 Auckland, Auckland, New Zealand
This talk introduced maplibre-gl-terradraw, a new drawing plugin for MapLibre and a modern replacement for the unmaintained mapbox-gl-draw.
The plugin is built on Terra Draw and designed specifically for MapLibre, providing a pre-configured drawing feature with a single line of code:
map.addControl(new MaplibreTerradrawControl())
With this control, users get:
- multiple drawing modes — point, line, polygon, rectangle, circle and more
- selecting, deleting and downloading drawn features
- a measure control to calculate the distance of lines and the area of polygons, and to query elevation from raster DEM sources
In the talk, I demonstrated the core functionalities and how easily drawing features can be integrated into MapLibre applications.
the abstract is available this page