| | |
| | | logo: this._parseResult.maplogo, |
| | | showAttribution: true, |
| | | extent: extent, |
| | | maxZoom: 17, |
| | | maxZoom: 19, |
| | | minZoom: 0, |
| | | navigationMode: "classic" |
| | | }); |
| | |
| | | |
| | | this._addLayer(); |
| | | this._eventHandlers.push(this.map.on("extent-change", lang.hitch(this, this._onExtentChange))); |
| | | this._eventHandlers.push(this.map.on("mouse-move", lang.hitch(this, this._onMouseMove))); |
| | | // 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)); |
| | | }, |
| | | onload: function () { |
| | | AppEvent.dispatchAppEvent("mapLoad",this.map); |
| | | //var listNode = this.map.attribution.listNode; |
| | | var listNode = this.domNode; |
| | | var scalebar = new Scalebar({ |
| | |
| | | } |
| | | } |
| | | })) |
| | | AppEvent.dispatchAppEvent("mapLoad", this.map); |
| | | |
| | | return this.map |
| | | }, |
| | | appendToolHandler: function (data) { |