Skip to content

Commit

Permalink
LayerSettings fix and map minXoom
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrenechea committed Jun 13, 2024
1 parent 421a387 commit dabc3d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/containers/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Map = () => {
projection={{
name: "mercator",
}}
minZoom={0}
minZoom={2}
maxZoom={14}
logoPosition="top-left"
>
Expand Down
5 changes: 4 additions & 1 deletion client/src/containers/map/layer-manager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ const LayerManager = () => {
key={l}
id={l}
beforeId={beforeId}
settings={(layersSettings && layersSettings[l]) ?? { opacity: 1, visibility: true }}
settings={{
...{ opacity: 1, visibility: true },
...(!!layersSettings && layersSettings[l]),
}}
/>
);
})}
Expand Down

0 comments on commit dabc3d7

Please sign in to comment.