biigle / annotations

:m: BIIGLE module to create, edit and explore image annotations
0 stars 1 forks source link

Measure tool #103

Closed mzur closed 5 years ago

mzur commented 6 years ago

Implement a ruler tool that allows users to measure the length/dimensions of objects. I see two possible ways to implement this:

  1. 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.

  2. 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).

mzur commented 6 years ago

We chose option 1. It should be added as a new tool to the settings tab in the sidebar.

mzur commented 5 years ago

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.