mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: solved breaking error on production with draggable paths in leaflet
This commit is contained in:
parent
2bbcbc5576
commit
416f0d3e36
@ -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();
|
||||
|
||||
@ -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 */
|
||||
|
||||
22
frontend/server/.vscode/launch.json
vendored
22
frontend/server/.vscode/launch.json
vendored
@ -26,6 +26,28 @@
|
||||
"--vite"
|
||||
],
|
||||
"restart": true
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch server (core only, static)",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user