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 cercaliax.Control.MeasureControlOptions | undefined optional

Extends

Methods

disableMeasureInteraction()

Disable the measure interaction.

enableMeasureInteraction(type)

Enable the distance measure control

Name Type Description
type string | boolean | undefined optional

getClass(){string} inherited

Returns:
class

getDialog(){jQuery}

Get menu dialog element

Returns:
jQueryElement

getElement(){HTMLElement} inherited

Obtain the control DOM element

Returns:
DOM Element

Returns the control name

Returns:
Control name

Hide the control

Shows the control