Преглед на файлове

fix the issue change the baselayer

tags/3.0.0
Caven Chen преди 2 години
родител
ревизия
11d6b95341
No account linked to committer's email address
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      modules/viewer/Viewer.js

+ 2
- 2
modules/viewer/Viewer.js Целия файл

} }
this._baseLayerPicker.addImageryProvider(baseLayers) this._baseLayerPicker.addImageryProvider(baseLayers)
if (!this._baseLayerPicker.selectedImagery) { if (!this._baseLayerPicker.selectedImagery) {
this._baseLayerPicker.changeBaseLayer(0)
this._baseLayerPicker.changeImagery(0)
} }
this.mapSwitch && this.mapSwitch.addMap(options) this.mapSwitch && this.mapSwitch.addMap(options)
return this return this
* @returns {Viewer} * @returns {Viewer}
*/ */
changeBaseLayer(index) { changeBaseLayer(index) {
this._baseLayerPicker.changeBaseLayer(index)
this._baseLayerPicker.changeImagery(index)
return this return this
} }



Loading…
Отказ
Запис