diff --git a/frontend/package.json b/frontend/package.json index e4a3ef7a..3259daa0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -50,7 +50,6 @@ "jquery-ui": "^1.12.1", "leaflet": "^1.7.1", "leaflet-draggable-lines": "^1.0.9", - "leaflet-geometryutil": "^0.9.3", "leaflet-graphicscale": "^0.0.2", "leaflet-mouse-position": "^1.0.4", "leaflet.heightgraph": "^1.4.0", diff --git a/leaflet/package.json b/leaflet/package.json index a547c598..85dbf8d6 100644 --- a/leaflet/package.json +++ b/leaflet/package.json @@ -48,7 +48,6 @@ "leaflet-auto-graticule": "^1.0.9", "leaflet-draggable-lines": "^1.0.9", "leaflet-freie-tonne": "^1.0.5", - "leaflet-geometryutil": "^0.9.3", "leaflet-hash": "^0.2.1", "leaflet-highlightable-layers": "^1.0.9", "leaflet.markercluster": "^1.5.0", diff --git a/leaflet/src/type-fixup.ts b/leaflet/src/type-fixup.ts index fc235e9a..63cbb3ce 100644 --- a/leaflet/src/type-fixup.ts +++ b/leaflet/src/type-fixup.ts @@ -14,8 +14,6 @@ declare module "leaflet" { removeInteractiveTarget(targetEl: HTMLElement): void; } - export const GeometryUtil: any; - interface Handler { _map: Map; } diff --git a/leaflet/src/utils/leaflet.ts b/leaflet/src/utils/leaflet.ts index 560d2afd..8b772f84 100644 --- a/leaflet/src/utils/leaflet.ts +++ b/leaflet/src/utils/leaflet.ts @@ -1,7 +1,6 @@ import { TrackPoints } from 'facilmap-client'; import { Bbox, BboxWithZoom, Point } from 'facilmap-types'; import L, { LatLng, LatLngBounds, Map, TooltipOptions } from 'leaflet'; -import 'leaflet-geometryutil'; export const tooltipOptions: TooltipOptions = { direction: "right"