Optional
geodesic?: 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.
Optional
id?: numberAbility to add an identifier on the widget (advanced option)
Optional
layerDescription?: { description?: string; title?: string }Layer informations to be displayed in LayerSwitcher widget (only if a LayerSwitcher is also added to the map)
Optional
description?: stringLayer description to be displayed in LayerSwitcher
Optional
title?: stringLayer title to be displayed in LayerSwitcher
Optional
styles?: { finish?: any; pointer?: any; start?: any }styles used when drawing. Specified with following properties.
Optional
finish?: anyLine Style when finished drawing. Specified with an ol.style.Style object.
options for function call.