Terra Draw

Terra Draw is an open source JavaScript library for drawing and editing geometries on web maps.

Terra Draw

terra_draw_osgeo_whitebackground

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.

Core features

  • Create geometries

    • Points
    • Lines
    • Polygons
    • Rectangles
    • Circles
  • Select and edit geometries

    • Select
    • Resize
    • Rotate
    • Delete
    • Move vertex
  • Supports different mapping libraries

    • Leaflet
    • Maplibre
    • OpenLayers
    • Mapbox
    • Google Maps
    • ArcGIS Maps SDK for JavaScript
  • Customise to make the experience work for your project

    • Create custom modes
    • Create custom adapters for new mapping libraries

Implemented Standards

  • Geographic JSON (GeoJSON)
frame-browser-terra-draw