mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
clean: remove zoom in and out from contextmenu
Let's make it smaller (unless proven otherwise!).
This commit is contained in:
parent
4940f6c329
commit
9b29b705da
1 changed files with 0 additions and 13 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue