mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +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) {
|
getContextMenuItems: function (event) {
|
||||||
const items = []
|
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()) {
|
if (this.hasEditMode()) {
|
||||||
items.push('-')
|
|
||||||
if (this.editEnabled) {
|
if (this.editEnabled) {
|
||||||
if (!this.isDirty) {
|
if (!this.isDirty) {
|
||||||
items.push({
|
items.push({
|
||||||
|
|
Loading…
Reference in a new issue