From 9b29b705da61bfc6f4af1c403285b2d867fe8efd Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 4 Oct 2024 17:32:39 +0200 Subject: [PATCH] clean: remove zoom in and out from contextmenu Let's make it smaller (unless proven otherwise!). --- umap/static/umap/js/umap.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index a5792c07..3372ac4a 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1686,20 +1686,7 @@ U.Map = L.Map.extend({ getContextMenuItems: function (event) { const items = [] - if (this._zoom !== this.getMaxZoom()) { - items.push({ - label: L._('Zoom in'), - action: () => this.zoomIn(), - }) - } - if (this._zoom !== this.getMinZoom()) { - items.push({ - label: L._('Zoom out'), - action: () => this.zoomOut(), - }) - } if (this.hasEditMode()) { - items.push('-') if (this.editEnabled) { if (!this.isDirty) { items.push({