Terra Draw
Terra Draw is a JavaScript library that developers can use in their projects to provide geometry drawing and editing capabilities to their web maps. It is available on the npm package registry, a common way for JavaScript developers to consume packages.
Terra Draw supports a series of different mapping libraries out the box, including, but not limited to Leaflet, MapLibre and OpenLayers. The library provides a series of modes out the box for drawing common geometry types such as points, lines and polygons, rectangles and circles and also a select mode for editing those drawn geometries.
The approach taken in Terra Draw allows for custom modes to be written allowing for powerful drawing experiences to be created, tuned to the specific use case of the project at hand. Similarly adapters can be written for new mapping libraries that come about in the future, making the library resilient to changes in the web mapping landscape.