interface
BaseData
LabelVisibilitySettings
The list of visibility settings for label groups.
Rule for area. Used with 'polygon'-mode. Enabled by default.
Rule for distance labels on perimeter. Enabled by default.
Rule for snap point label. Enabled by default.
PolygonData
PolylineData
RulerControlOptions
Specifies whether the ruler should be enabled after control initialization.
Custom joint factory function, useful for styling
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.
Polygon drawing options.
Polyline drawing options.
Custom snap point factory function, useful for styling
RulerEvent
RulerEventTable
The list of events that can be emitted by a Ruler instance.
Emitted when the points are changed.
RulerOptions
Ruler initialization options.
Specifies whether the ruler should be drawn on its initialization.
Specifies whether the labels should be drawn. Optional.
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. Optional.
polyline
by default
An array of geographical points [longitude, latitude]. Optional.