diff --git a/frontend/react/src/map/coalitionarea/draggablepath.ts b/frontend/react/src/map/coalitionarea/draggablepath.ts index 919d0024..f5424694 100644 --- a/frontend/react/src/map/coalitionarea/draggablepath.ts +++ b/frontend/react/src/map/coalitionarea/draggablepath.ts @@ -1,6 +1,6 @@ export const initDraggablePath = (L) => { //@ts-ignore - L.PathDraggable = L.Draggable.extend({ + const PathDraggable = L.Draggable.extend({ initialize: function (path) { this._path = path; @@ -52,7 +52,7 @@ export const initDraggablePath = (L) => { addHooks: function () { if (!this._draggable) { //@ts-ignore - this._draggable = new L.PathDraggable(this._path); + this._draggable = new PathDraggable(this._path); } this._draggable.on(this.getEvents(), this).enable(); diff --git a/frontend/react/src/map/map.ts b/frontend/react/src/map/map.ts index e62048ba..3fca7f6f 100644 --- a/frontend/react/src/map/map.ts +++ b/frontend/react/src/map/map.ts @@ -68,7 +68,7 @@ import { SmokeMarker } from "./markers/smokemarker"; /* Register the handler for the box selection */ L.Map.addInitHook("addHandler", "boxSelect", BoxSelect); -//initDraggablePath(L); // TODO: breaks app when compiled +initDraggablePath(L); // TODO: breaks app when compiled export class Map extends L.Map { /* Options */ diff --git a/frontend/server/.vscode/launch.json b/frontend/server/.vscode/launch.json index 38834a96..43f73732 100644 --- a/frontend/server/.vscode/launch.json +++ b/frontend/server/.vscode/launch.json @@ -26,6 +26,28 @@ "--vite" ], "restart": true + }, + { + "type": "node", + "request": "launch", + "name": "Launch server (core only, static)", + "skipFiles": [ + "/**" + ], + "runtimeExecutable": "nodemon", + "runtimeArgs": [ + "--watch", + "src/**/*.ts", + "--exec", + "node", + "--inspect", + "-r", + "ts-node/register", + "src/www.ts", + "-c", + "${input:enterDir}/Config/olympus.json" + ], + "restart": true }, { "type": "node",