DistanceMeasurementTool — overlay widget that renders one or more DistanceMeasurements on a View's canvas.

Mirrors the shape of V2's DistanceMeasurementsPlugin but rendered with SVG + DOM (no second renderer or off-screen canvas).

Interactive creation lives on mouseControl — see MouseDistanceMeasurementsControl.

One tool per View; the registry key is the View itself, so openFor / getFor are idempotent. destroy() tears down the overlay, all child measurements, and the camera-update subscription.

Constructors

Properties

defaultColor: string
measurements: { [id: string]: DistanceMeasurement } = {}

All measurements currently mounted, keyed by id.

onMeasurementsChanged: EventEmitter<DistanceMeasurementTool, void>

Fires when the measurements map changes — after every createMeasurement, destroyMeasurement, and clear call. Coarse-grained: a listener that needs the current contents should re-read the measurements map.

picker: PickStrategy
view: View

Accessors

Methods