南昌市物联网技防平台-前端
jxdnsong
2021-02-03 1e7d96a0b08d74328ed7ae56fbd6a2d365eaadb5
public/map/widgets/map/MapWidget.js
@@ -124,10 +124,6 @@
            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;
@@ -245,7 +241,7 @@
                    }
                }
            }))
            AppEvent.dispatchAppEvent("mapLoad", this.map);
            return this.map
        },
        appendToolHandler: function (data) {
@@ -312,7 +308,7 @@
                });
                this.map.addLayer(cycleMap);
                this.map.centerAndZoom(new Point(115.806669,28.68635, new SpatialReference({ wkid: 4326 })), 14);
                //this.map.centerAndZoom(new Point(115.806669,28.68635, new SpatialReference({ wkid: 4326 })), 14);
                // //添加多时相图层