feat: setup app for static compilation

Breaking change!: initDraggablePath disabled because it breaks the app
This commit is contained in:
Davide Passoni
2024-12-06 17:47:08 +01:00
parent ffade5fb8e
commit a899c5ffca
6 changed files with 56 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ import { SmokeMarker } from "./markers/smokemarker";
/* Register the handler for the box selection */
L.Map.addInitHook("addHandler", "boxSelect", BoxSelect);
initDraggablePath(L);
//initDraggablePath(L); // TODO: breaks app when compiled
export class Map extends L.Map {
/* Options */

View File

@@ -56,13 +56,16 @@ export function UI() {
});
}, []);
useEffect(() => {
setupApp();
})
return (
<div
className={`
absolute left-0 top-0 flex h-screen w-screen flex-col overflow-hidden
font-sans
`}
onLoad={setupApp}
>
<Header />
<div className="flex h-full w-full flex-row-reverse">