diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 9ba1e37d..6bb4c27a 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -323,7 +323,7 @@ L.U.EditControl = L.Control.extend({ const enableEditing = L.DomUtil.createButton( '', container, - L._('Enable editing'), + L._('Edit'), map.enableEdit, map ) @@ -332,7 +332,7 @@ L.U.EditControl = L.Control.extend({ 'mouseover', function () { map.ui.tooltip({ - content: `${L._('Edit map')} (Ctrl+E)`, + content: `${L._('Switch to edit mode')} (Ctrl+E)`, anchor: enableEditing, position: 'bottom', delay: 750, @@ -977,7 +977,7 @@ L.U.Map.include({ const controlEditDisable = L.DomUtil.createButton( 'leaflet-control-edit-disable', rightContainer, - L.DomUtil.add('span', '', null, L._('Disable editing')), + L.DomUtil.add('span', '', null, L._('View')), function (e) { this.disableEdit(e) this.ui.closePanel() @@ -989,7 +989,7 @@ L.U.Map.include({ 'mouseover', function () { this.ui.tooltip({ - content: `${L._('Disable editing')} (Ctrl+E)`, + content: `${L._('Back to preview')} (Ctrl+E)`, anchor: controlEditDisable, position: 'bottom', delay: 500, @@ -1001,7 +1001,7 @@ L.U.Map.include({ const controlEditSave = L.DomUtil.createButton( 'leaflet-control-edit-save button', rightContainer, - L.DomUtil.add('span', '', null, L._('Save current edits')), + L.DomUtil.add('span', '', null, L._('Save')), this.save, this ) @@ -1010,7 +1010,7 @@ L.U.Map.include({ 'mouseover', function () { this.ui.tooltip({ - content: `${L._('Save')} (Ctrl+S)`, + content: `${L._('Save current edits')} (Ctrl+S)`, anchor: controlEditSave, position: 'bottom', delay: 500, diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index cf9bd419..42978a00 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -463,7 +463,7 @@ ul.photon-autocomplete { background-position: -2px -25px; } .leaflet-container .leaflet-control-edit-disable:before { - background-position: -26px -1px; + background-position: -52px -25px; } .leaflet-container .leaflet-control-edit-cancel, .leaflet-container .leaflet-control-edit-disable {