设置sceneView的背景

设置sceneView的背景

const view = new SceneView({

  container: "viewDiv",

  map: map,

//高亮显示选中的图层

  highlightOptions: {

            haloOpacity: 0

          },

  environment: {

//设置背景

    background: {

      type: "color", // autocasts as new ColorBackground()

      color: [255, 252, 244, 1]

    },

    // disable stars

    starsEnabled: false,

    //disable atmosphere

    atmosphereEnabled: false

  }

});

 

posted on 2021-08-20 18:04  一往无前!  阅读(156)  评论(0编辑  收藏  举报