Browse Source

fix the issue change the baselayer

tags/3.0.0
Caven Chen 2 years ago
parent
commit
11d6b95341
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/viewer/Viewer.js

+ 2
- 2
modules/viewer/Viewer.js View File

@@ -296,7 +296,7 @@ class Viewer {
}
this._baseLayerPicker.addImageryProvider(baseLayers)
if (!this._baseLayerPicker.selectedImagery) {
this._baseLayerPicker.changeBaseLayer(0)
this._baseLayerPicker.changeImagery(0)
}
this.mapSwitch && this.mapSwitch.addMap(options)
return this
@@ -308,7 +308,7 @@ class Viewer {
* @returns {Viewer}
*/
changeBaseLayer(index) {
this._baseLayerPicker.changeBaseLayer(index)
this._baseLayerPicker.changeImagery(index)
return this
}


Loading…
Cancel
Save