@watergis/maplibre-gl-terradraw
v1.9.7
Published
This plugin is to add controls to your Maplibre for drawing powered by Terra Draw library.
Maintainers
Readme
maplibre-gl-terradraw

This plugin is to add controls to your MapLibre for drawing powered by Terra Draw library.
Install
npm i -D @watergis/maplibre-gl-terradrawUsage
See the documentation.
Plugin API
See the API documentation.
Use cases
These projects are using maplibre-gl-terradraw and can be used as examples:
| Name | Website | Source code | | ------------- | ---------------------------------------------------------------------- | -------------------------------------------------- | | Cartes.app | cartes.app | GitHub | | Open Hinata 3 | kenzkenz.xsrv.jp/open-hinata3 | GitHub | | UNDP GeoHub | geohub.data.undp.org | GitHub |
Please feel free to make a PR to add your project here!
Dependencies
This plugin depends the following libraries:
- Terra Draw: core library for drawing features
- maplibre-gl-js: map library for the plugin
- Turf: It is used for measuring functionalities (area, distance, centroid).
- Google fonts: using some icons for the plugin buttons
- font-gis: using some geometry and measure SVGs for the plugin buttons
Contribution
See CONTRIBUTING
Lisence
This plugin is licensed under MIT License.
