Skip to content

Commit

Permalink
#9552: keep the legend state for the saved maps (#9619) (#9634)
Browse files Browse the repository at this point in the history
* #9552: keep the legend state for the saved maps

* #9552: add test cases
  • Loading branch information
mahmoudadel54 authored Oct 23, 2023
1 parent b8f48db commit 40e364d
Show file tree
Hide file tree
Showing 2 changed files with 252 additions and 24 deletions.
3 changes: 2 additions & 1 deletion web/client/utils/LayersUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ export const saveLayer = (layer) => {
tooltipPlacement: layer.tooltipPlacement,
legendOptions: layer.legendOptions,
tileSize: layer.tileSize,
version: layer.version
version: layer.version,
expanded: layer.expanded || false
},
layer.sources ? { sources: layer.sources } : {},
layer.heightOffset ? { heightOffset: layer.heightOffset } : {},
Expand Down
Loading

0 comments on commit 40e364d

Please sign in to comment.