RulerControlOptions | MapGL | 2GIS Documentation
MapGL JS API

RulerControlOptions

Properties
undefinedfalsetrue

Specifies whether the ruler should be enabled after control initialization.

RulerOptions["mode"]

Sets ruler's behavior. Specifies whether the ruler should be in measuring mode of the distance of a polyline or the area of a polygon.

Position of the control.