diff --git a/src/App.tsx b/src/App.tsx index 4f261d97f..c361a7cd5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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'; @@ -29,19 +24,12 @@ export const App: React.FC = ({ } }, []); - const map = useMap(); - let layers: any[] = []; - if (map) { - layers = map.getLayers().getArray(); - } - return (
-