From 564212962346b05870566d1edb2e350cb119e92c Mon Sep 17 00:00:00 2001 From: vcoppe Date: Tue, 11 Jun 2024 23:40:10 +0200 Subject: [PATCH] remove tmp anchor when not routing --- .../src/lib/components/toolbar/tools/routing/RoutingControls.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/lib/components/toolbar/tools/routing/RoutingControls.ts b/website/src/lib/components/toolbar/tools/routing/RoutingControls.ts index ab1bbdc0..b6736b35 100644 --- a/website/src/lib/components/toolbar/tools/routing/RoutingControls.ts +++ b/website/src/lib/components/toolbar/tools/routing/RoutingControls.ts @@ -128,6 +128,7 @@ export class RoutingControls { this.map.off('click', this.appendAnchorBinded); this.map.off('mousemove', this.fileId, this.showTemporaryAnchorBinded); this.map.off('mousemove', this.updateTemporaryAnchorBinded); + this.temporaryAnchor.marker.remove(); resetCursor(); this.fileUnsubscribe();