Enhance measure messages

This commit is contained in:
Yohan Boniface 2023-05-02 17:52:25 +02:00
parent 71ac1f48db
commit 515aee9324

View file

@ -1280,7 +1280,6 @@ L.U.Editable = L.Editable.extend({
// when drawing third point (or more) // when drawing third point (or more)
content = L._('Click last point to finish shape'); content = L._('Click last point to finish shape');
} }
content += ", "
} }
} else { } else {
// when moving an existing point // when moving an existing point
@ -1288,9 +1287,9 @@ L.U.Editable = L.Editable.extend({
} }
if (measure){ if (measure){
if (e.layer instanceof L.Polygon){ 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) { } else if (e.layer instanceof L.Polyline) {
content = L._('Line length: {measure}', { measure: measure }); content += L._(' (length: {measure})', { measure: measure });
} }
} }
if (content) { if (content) {