Ruler to draw a line/area and display length/area in a dialog.
You need a button to show this element. See Button for inherited configuration options.
YAML-Definition:
tooltip: "ruler" # text to use as tooltip
target: ~ # Id of Map element to query
type: 'line' # choose type line or area
None.
Activates the widget which then waits for mouse click on the map and starts to measure.
Deactivates the widget.
None.