One-call terra-draw sketch setup for a MapLibre map.
Dynamically imports the optional terra-draw and
terra-draw-maplibre-gl-adapter peers (throwing a descriptive error when
either is missing), registers the canonical drawing modes (point,
linestring, polygon, rectangle, circle, freehand, select), wires SDK
snapping into the modes that accept a custom snapping hook, starts the
instance, and returns it bound to the workflow model via
bindTerraDrawSketch.
Apps that need custom mode options should construct terra-draw themselves
and call bindTerraDrawSketch directly.
One-call terra-draw sketch setup for a MapLibre map.
Dynamically imports the optional
terra-drawandterra-draw-maplibre-gl-adapterpeers (throwing a descriptive error when either is missing), registers the canonical drawing modes (point, linestring, polygon, rectangle, circle, freehand, select), wires SDK snapping into the modes that accept a custom snapping hook, starts the instance, and returns it bound to the workflow model via bindTerraDrawSketch.Apps that need custom mode options should construct terra-draw themselves and call bindTerraDrawSketch directly.