id |
Number
|
|
optional
Ability to add an identifier on the widget (advanced option) |
geodesic |
Boolean
|
true
|
optional
If true, area will be computed on the global sphere using the ol.Sphere.geodesicArea() function. Otherwise, area will be computed on the projected plane. |
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 polygon to measure. Specified with an ol.style.Image subclass object. |
start |
Object
|
{}
|
optional
Polygon Style when drawing. Specified with an ol.style.Style object. |
finish |
Object
|
{}
|
optional
Polygon 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 surface"
|
optional
Layer title to be displayed in LayerSwitcher |
description |
String
|
"Mes mesures"
|
optional
Layer description to be displayed in LayerSwitcher |
|