Measure distances on the map
Add a ruler tool, to measure distances.
Map: add ruler tool to measure distances (refs #12491)
- update material icons
Map: rulers to measure several distances (refs #12491)
- Fix missing turf dependency and bump version
#1 Updated by Philippe May 23 days ago
- Status changed from New to Resolved
I decided to code a custom tool, with bits and pieces inspired by https://github.com/korywka/mapbox-gl-controls.
After selecting the ruler tool (compass icon), the user can click on 2 points on the map to draw a line, the distance is shown on that line. Several lines can be added. They disappear when the user clicks again on the compass icon.
The user can also press the <control> key to measure several distances from the same starting point.