From 515aee9324a851cb1095044b9c19baf5d87fea66 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 2 May 2023 17:52:25 +0200 Subject: [PATCH] Enhance measure messages --- umap/static/umap/js/umap.controls.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index af4e096a..5273b88c 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1280,7 +1280,6 @@ L.U.Editable = L.Editable.extend({ // when drawing third point (or more) content = L._('Click last point to finish shape'); } - content += ", " } } else { // when moving an existing point @@ -1288,9 +1287,9 @@ L.U.Editable = L.Editable.extend({ } if (measure){ if (e.layer instanceof L.Polygon){ - content = L._('Polygon area: {measure}', { measure: measure }); + content += L._(' (area: {measure})', { measure: measure }); } else if (e.layer instanceof L.Polyline) { - content = L._('Line length: {measure}', { measure: measure }); + content += L._(' (length: {measure})', { measure: measure }); } } if (content) {