From ed33b1611adc9d25b08879671c7fcee937bfc877 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 25 Dec 2024 19:32:49 +0100 Subject: [PATCH] fix: fix startMarker/Polyline/Polygon on right click fix #2392 --- umap/static/umap/js/modules/umap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/umap.js b/umap/static/umap/js/modules/umap.js index 42aaeb98..f1e8541a 100644 --- a/umap/static/umap/js/modules/umap.js +++ b/umap/static/umap/js/modules/umap.js @@ -349,19 +349,19 @@ export default class Umap extends ServerStored { if (this.properties.enableMarkerDraw) { items.push({ label: this.help.displayLabel('DRAW_MARKER'), - action: () => this._leafletMap.startMarker(event), + action: () => this._leafletMap.editTools.startMarker(), }) } if (this.properties.enablePolylineDraw) { items.push({ label: this.help.displayLabel('DRAW_POLYGON'), - action: () => this._leafletMap.startPolygon(event), + action: () => this._leafletMap.editTools.startPolygon(), }) } if (this.properties.enablePolygonDraw) { items.push({ label: this.help.displayLabel('DRAW_LINE'), - action: () => this._leafletMap.startPolyline(event), + action: () => this._leafletMap.editTools.startPolyline(), }) } items.push('-')