From 1befdd4a5c856d99249aa7ff849b8aade0adc164 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sun, 21 Mar 2021 13:07:37 +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