Skip to content

Commit 8884678

Browse files
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 #1460
1 parent 011bdaa commit 8884678

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/geolibre-desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"maplibre-gl": "^5.24.0",
6565
"maplibre-gl-3d-tiles": "^0.5.4",
6666
"maplibre-gl-basemap-control": "^0.13.0",
67-
"maplibre-gl-components": "^0.28.0",
67+
"maplibre-gl-components": "^0.28.1",
6868
"maplibre-gl-duckdb": "^0.2.3",
6969
"maplibre-gl-earth-engine": "^0.4.2",
7070
"maplibre-gl-enviroatlas": "^0.1.1",

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/plugins/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"maplibre-gl": "^5.24.0",
3939
"maplibre-gl-3d-tiles": "^0.5.4",
4040
"maplibre-gl-basemap-control": "^0.13.0",
41-
"maplibre-gl-components": "^0.28.0",
41+
"maplibre-gl-components": "^0.28.1",
4242
"maplibre-gl-duckdb": "^0.2.3",
4343
"maplibre-gl-earth-engine": "^0.4.2",
4444
"maplibre-gl-enviroatlas": "^0.1.1",

0 commit comments

Comments
 (0)