zouyaoji / vue-cesium

🎉 Vue 3.x components for CesiumJS.
https://zouyaoji.top/vue-cesium
MIT License
1.49k stars 321 forks source link

Layer's base maps #7

Closed alipajand closed 5 years ago

alipajand commented 5 years ago

Hi, thank you for your library. I want to ask you how we can change the base maps from cesium? (Base map means it should always being under the all other layers) Do you have any idea to help me?

zouyaoji commented 5 years ago

Hello, You can reference my demo.

layerAdded () {
  if (this.$refs.layerText.imageryLayer) {
    const {viewer} = this.cesiumInstance
    viewer.imageryLayers.raiseToTop(this.$refs.layerText.imageryLayer)
  }
}

but in your case, you shoud use the lowerToBottom api.