Skip to content

Commit

Permalink
Merge pull request #510 from terrestris/disable-background-layer-swit…
Browse files Browse the repository at this point in the history
…cher

Disable the `BackgroundLayerChooser`
  • Loading branch information
dnlkoch authored Nov 28, 2022
2 parents ddfbc88 + 7056463 commit 76f4272
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import React, {
useEffect
} from 'react';

import {
BackgroundLayerChooser,
useMap
} from '@terrestris/react-geo';

import AddLayerModal from './components/AddLayerModal/index';
import BasicMapComponent from './components/BasicMapComponent';
import Footer from './components/Footer';
Expand All @@ -29,19 +24,12 @@ export const App: React.FC<AppProps> = ({
}
}, []);

const map = useMap();
let layers: any[] = [];
if (map) {
layers = map.getLayers().getArray();
}

return (
<div
className="App"
{...restProps}
>
<Header />
<BackgroundLayerChooser layers={layers as any} />
<BasicMapComponent />
<ToolMenu />
<Footer />
Expand Down

0 comments on commit 76f4272

Please sign in to comment.