Optionalgeodesic?: booleanIf true, length will be computed on the global sphere using the ol.Sphere.haversineDistance() function. Otherwise, length will be computed on the projected plane.
Optionalid?: numberAbility to add an identifier on the widget (advanced option)
OptionallayerDescription?: { description?: string; title?: string }Layer informations to be displayed in LayerSwitcher widget (only if a LayerSwitcher is also added to the map)
Optionaldescription?: stringLayer description to be displayed in LayerSwitcher
Optionaltitle?: stringLayer title to be displayed in LayerSwitcher
Optionalstyles?: { finish?: any; pointer?: any; start?: any }styles used when drawing. Specified with following properties.
Optionalfinish?: anyLine Style when finished drawing. Specified with an ol.style.Style object.
options for function call.