From 8aa3edd56c279100c9053576f3e90fa55459fe77 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 16 Jan 2023 16:15:55 +0800
Subject: [PATCH] 修改
---
public/map/widgets/map/MapWidget.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/public/map/widgets/map/MapWidget.js b/public/map/widgets/map/MapWidget.js
index a7e1d18..9039070 100644
--- a/public/map/widgets/map/MapWidget.js
+++ b/public/map/widgets/map/MapWidget.js
@@ -96,7 +96,7 @@
logo: this._parseResult.maplogo,
showAttribution: true,
extent: extent,
- maxZoom: 17,
+ maxZoom: 19,
minZoom: 0,
navigationMode: "classic"
});
@@ -116,11 +116,12 @@
this._addLayer();
this._eventHandlers.push(this.map.on("extent-change", lang.hitch(this, this._onExtentChange)));
- this._eventHandlers.push(this.map.on("mouse-move", lang.hitch(this, this._onMouseMove)));
+ // this._eventHandlers.push(this.map.on("mouse-move", lang.hitch(this, this._onMouseMove)));
AppEvent.addAppEventListener(AppEvent.SWITCH_BASEMAP, lang.hitch(this, this.onSwitchBaseMap));
AppEvent.addAppEventListener(AppEvent.ADD_TOP_MOST_LAYER, lang.hitch(this, this.onAddTopMostLayer));
},
onload: function () {
+ AppEvent.dispatchAppEvent("mapLoad",this.map);
//var listNode = this.map.attribution.listNode;
var listNode = this.domNode;
var scalebar = new Scalebar({
@@ -236,7 +237,7 @@
}
}
}))
- AppEvent.dispatchAppEvent("mapLoad", this.map);
+
return this.map
},
appendToolHandler: function (data) {
--
Gitblit v1.9.3