From 8279ae8a62fd7c2404926da9908b6b8bc66c0a6e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 15 Mar 2024 18:26:17 +0100 Subject: [PATCH] chore: put back order of edit buttons We'll certainly change them later, but for now let's create useless noise for users --- umap/static/umap/js/umap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 7c6d8394..c2f31f67 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -320,10 +320,11 @@ U.Map = L.Map.extend({ if (this.hasEditMode() && !this.options.noControl) { new U.EditControl(this).addTo(this) + new U.DrawToolbar({ map: this }).addTo(this) const editActions = [ - U.EditLayersAction, U.EditCaptionAction, U.EditPropertiesAction, + U.EditLayersAction, U.ChangeTileLayerAction, U.UpdateExtentAction, U.UpdatePermsAction, @@ -333,7 +334,6 @@ U.Map = L.Map.extend({ new U.SettingsToolbar({ actions: editActions }).addTo(this) } - new U.DrawToolbar({ map: this }).addTo(this) } this._controls.zoom = new L.Control.Zoom({ zoomInTitle: L._('Zoom in'),