From 33c4e059eeb71de6f186bc4ee22e05bfd3bd5aeb Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 24 Mar 2021 18:23:45 +0800
Subject: [PATCH] 问题修复
---
public/map/widgets/map/MapWidget.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/public/map/widgets/map/MapWidget.js b/public/map/widgets/map/MapWidget.js
index a7e1d18..482aff1 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"
});
@@ -121,6 +121,7 @@
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