Skip to content

Commit 12647d8

Browse files
author
Jin Igarashi
authored
Merge branch 'develop' into feat/4943-measure-control
2 parents c738332 + 80149b7 commit 12647d8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/happy-feet-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"geohub": patch
3+
---
4+
5+
fix: previously, the order of layers in sidebar is opposite from what maplibre renders. That makes some confusion and users do not realize the first layer is actually rendered the bottom of second layer. This will bring duplicated layer to the top, so it will be the same order of maplibre.

sites/geohub/src/routes/(app)/dashboards/ceei/utils/layerHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const addLayer = (map: Map, layer: Layer) => {
9696

9797
const layers = get(layersStore);
9898

99-
layersStore.set([...layers, layer]);
99+
layersStore.set([layer, ...layers]);
100100

101101
map.addSource(layer.sourceId, layer.source);
102102

0 commit comments

Comments
 (0)