Commit 10da5fe
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
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 | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments