Closed mzur closed 5 years ago
We chose option 1. It should be added as a new tool to the settings tab in the sidebar.
As a first step, I decided to implement 2. after all. This integrates very well with the existing UI. I added a new switch "measure tooltip" to the settings tab that can be used instead of the "label tooltip" (former "annotation tooltip"). It shows the length of line string and/or the area of rectangle, circle or polygon annotations.
Now I'll think about how to integrate the measure tool.
Implement a ruler tool that allows users to measure the length/dimensions of objects. I see two possible ways to implement this:
Implement this as a new tool. The user clicks a button and the tool is activated. The user then makes two clicks to draw an imaginary line and the tool displays the length in pixels or in meter. Measure example of OpenLayers.
Implement this as an extension of annotations. The user selects an annotation and then the length/dimension of the annotation is displayed (in a tooltip).