Commit 8884678
authored
fix(measure): show a real total in the Measure panel (#1465)
The Measure panel's "Total Distance" / "Total Area" readout dropped to 0.00
the moment a measurement was completed, even though the result was listed
right below it. The readout rendered only the in-progress drawing's value,
and finishing a measurement re-arms the tool, which resets that value to
zero.
Fixed upstream in maplibre-gl-components 0.28.1
(opengeos/maplibre-gl-components#124): the readout now sums the completed
measurements of the active mode plus the one being drawn, refreshes when a
measurement is deleted, and stays on screen after Escape while measurements
remain. The panel's unit selector also re-renders the saved measurements
list in the new unit instead of leaving the previous unit's numbers.
Fixes #14601 parent 011bdaa commit 8884678
3 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments