| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | })) |
| | | |
| | | AppEvent.dispatchAppEvent("mapLoad", this.map); |
| | | return this.map |
| | | }, |
| | | appendToolHandler: function (data) { |
| | |
| | | }); |
| | | 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); |
| | | |
| | | |
| | | // //添加多时相图层 |