id |
Number
|
|
optional
Ability to add an identifier on the widget (advanced option) |
geodesic |
Boolean
|
true
|
optional
If true, length will be computed on the global sphere using the ol.Sphere.haversineDistance() function. Otherwise, length will be computed on the projected plane. |
unit |
String
|
|
optional
If not specified, the measure will be displayed in m until 999m, then in km. Values possible : m or km. |
styles |
Object
|
{}
|
optional
styles used when drawing. Specified with following properties.
Name |
Type |
Default |
Description |
pointer |
Object
|
{}
|
optional
Style for mouse pointer when drawing the path. Specified with an ol.style.Image subclass object. |
start |
Object
|
{}
|
optional
Line Style when drawing. Specified with an ol.style.Style object. |
finish |
Object
|
{}
|
optional
Line Style when finished drawing. Specified with an ol.style.Style object.
|
|
layerDescription |
Object
|
{}
|
optional
Layer informations to be displayed in LayerSwitcher widget (only if a LayerSwitcher is also added to the map)
Name |
Type |
Default |
Description |
title |
String
|
"Mesures de distance"
|
optional
Layer title to be displayed in LayerSwitcher |
description |
String
|
"Mes mesures"
|
optional
Layer description to be displayed in LayerSwitcher |
|