Feature #12491
Associated revisions
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
Map: fix deactivating rulers (refs #12491)
Map: fix same origin rulers (refs #12491)
History
#1 Updated by Philippe May over 3 years 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.