Skip to content

Commit 10da5fe

Browse files
committed
Order rebuilt heatmap and cluster layers from the Vector control
Bumps maplibre-gl-vector to 0.10.12, which carries opengeos/maplibre-gl-vector#67. A point-renderer switch on a layer owned by the Add Vector Layer control made the control rebuild its map layers, but it emitted `layerupdated` before the (async) rebuild replaced `layerIds`. GeoLibre mirrors those ids into `metadata.nativeLayerIds` and restacks from them, so it kept ids for layers the map no longer had and never saw the replacements: getBeforeStyleLayerId could not anchor and syncExternalNativeLayer moved nothing. A layer set to the heatmap renderer therefore kept whatever stacking the rebuild appended it with, drawing above layers the panel puts on top of it. 0.10.12 emits once the rebuild lands, so the ids stay live. The preceding commits fix the same symptom on the core GeoJSON path, where the heatmap/cluster/text/label style layers were missing from the ordered candidate list outright. Both paths are now verified in the browser: with the upper layer clustered and the lower one switched to heatmap last, the draw order comes out heatmap -> cluster -> cluster-count -> circle, matching the layer panel. Re-checked MAX_VECTOR_BYTES against `src/lib/utils/remote.ts` in the bumped package as CLAUDE.md requires: still `2 ** 31 - 1`, mirror unchanged.
1 parent dd9e4b5 commit 10da5fe

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
@@ -94,7 +94,7 @@
9494
"maplibre-gl-swipe": "^0.11.2",
9595
"maplibre-gl-time-slider": "^1.8.4",
9696
"maplibre-gl-usgs-lidar": "^0.11.1",
97-
"maplibre-gl-vector": "^0.10.11",
97+
"maplibre-gl-vector": "^0.10.12",
9898
"openai": "^7.3.0",
9999
"qrcode.react": "^4.2.0",
100100
"react": "^19.2.8",

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
@@ -68,7 +68,7 @@
6868
"maplibre-gl-swipe": "^0.11.2",
6969
"maplibre-gl-time-slider": "^1.8.4",
7070
"maplibre-gl-usgs-lidar": "^0.11.1",
71-
"maplibre-gl-vector": "^0.10.11",
71+
"maplibre-gl-vector": "^0.10.12",
7272
"netcdfjs": "^4.0.0",
7373
"ngeohash": "^0.6.4",
7474
"open-location-code-typescript": "^1.5.0",

0 commit comments

Comments
 (0)