Class: Measure

cercalia.Control.Measure

Measure control. This control measure:
cercalia.MapControls.MeasureControlOptions.LINE: The length, painting a line on the map
cercalia.MapControls.MeasureControlOptions.ROAD: The length, painting a route on the map:
cercalia.MapControls.MeasureControlOptions.AREA: The area, painting a polygon on the map.

new cercalia.Control.Measure(options)

Name Type Description
options optional
Name Type Description
scaleUnits string | undefined optional

Change units. Supported values are 'metric', 'imperial'. Default metric.

Extends

Methods

Disable the measure interaction.

Enable the distance measure control

Name Type Description
type string | boolean | undefined optional
Returns:
class

Get menu dialog element

Returns:
jQueryElement

Obtain the control DOM element

Returns:
DOM Element

Returns the control name

Returns:
Control name

Hide the control

Shows the control