This commit is contained in:
Max Tobias Weber
2026-03-22 13:49:17 +01:00
commit 87d1670df4
20 changed files with 12729 additions and 0 deletions

0
src/App.css Normal file
View File

18
src/App.tsx Normal file
View File

@@ -0,0 +1,18 @@
import "./App.css";
import { MapLibreMap } from "@mapcomponents/react-maplibre";
function App() {
return (
<>
<MapLibreMap
options={{
style: "https://wms.wheregroup.com/tileserver/style/osm-bright.json",
zoom: 4,
}}
style={{ position: "absolute", top: 0, bottom: 0, left: 0, right: 0 }}
/>
</>
);
}
export default App;

3
src/index.css Normal file
View File

@@ -0,0 +1,3 @@
body {
padding: 0;
}

16
src/main.tsx Normal file
View File

@@ -0,0 +1,16 @@
import React from "react";
import ReactDOM from "react-dom/client";
import { MapComponentsProvider } from "@mapcomponents/react-maplibre";
import App from "./App";
import "./index.css";
import { DeckGlContextProvider } from "@mapcomponents/deck-gl";
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<MapComponentsProvider>
<DeckGlContextProvider>
<App />
</DeckGlContextProvider>
</MapComponentsProvider>
</React.StrictMode>,
);

1
src/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />