From afbe7c90d8df0089109cca3dff4b77d3ee06bd34 Mon Sep 17 00:00:00 2001 From: Philip Beelmann Date: Tue, 2 May 2023 08:00:46 +0000 Subject: [PATCH] dont show popup "click to add a marker" when moving marker --- umap/static/umap/js/umap.controls.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 5eecf5c4..418c99c7 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1250,8 +1250,9 @@ L.U.Editable = L.Editable.extend({ drawingTooltip: function (e) { var content; - if (e.layer instanceof L.Marker) content = L._('Click to add a marker'); - else if (e.layer instanceof L.Polyline) { + if (e.layer instanceof L.Marker && e.type != "editable:drawing:move") { + content = L._('Click to add a marker'); + } else if (e.layer instanceof L.Polyline) { // when drawing a Polyline or Polygon if (e.layer.editor._drawnLatLngs) { // when drawing first point