Skip to content

Commit

Permalink
Merge pull request #4695 from wri/FLAG-791-issues-turning-the-satelli…
Browse files Browse the repository at this point in the history
…te-imagery-toggle-on-and-off

[FLAG-791] Issues turning the satellite imagery toggle on and off
  • Loading branch information
SARodrigues authored Sep 20, 2023
2 parents e6a16e7 + ba3714d commit 9716d6f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/map/components/layer-manager/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LayerManagerComponent extends PureComponent {
}
: null;

const allLayers = layers.filter((l) => l);
const allLayers = [basemapLayer, ...layers].filter((l) => l);

return (
<LayerManager
Expand Down Expand Up @@ -69,9 +69,6 @@ class LayerManagerComponent extends PureComponent {
},
}}
>
{basemapLayer && (
<Layer key="basemap" {...basemapLayer} {...basemapLayer?.config} />
)}
{allLayers &&
allLayers.map((l) => {
const config = l.config ? l.config : l.layerConfig;
Expand Down

0 comments on commit 9716d6f

Please sign in to comment.