mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
feat: setup app for static compilation
Breaking change!: initDraggablePath disabled because it breaks the app
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user