From 57282048850d03ee8db828f586c364577a44f02f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 03 Feb 2021 11:53:53 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue

---
 public/map/widgets/map/MapWidget.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/public/map/widgets/map/MapWidget.js b/public/map/widgets/map/MapWidget.js
index 09e0c91..3b6a8d4 100644
--- a/public/map/widgets/map/MapWidget.js
+++ b/public/map/widgets/map/MapWidget.js
@@ -124,6 +124,10 @@
             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));
+            AppEvent.addAppEventListener("goto", lang.hitch(this, this.goto));
+        },
+        goto: function (evt) {
+            this.map.centerAndZoom(new Point(evt.x,evt.y, new SpatialReference({ wkid: 4326 })), 14);
         },
         onload: function () {
             //var listNode = this.map.attribution.listNode;

--
Gitblit v1.9.3