zoukankan      html  css  js  c++  java
  • cesium在2d下设置height后entity颜色异常

    在添加entity时,3d视图是正常的白色,切换到2d视图时变成灰色。

    查阅:https://github.com/CesiumGS/cesium/issues/5730

    3d视图正常显示白色

     2d视图显示成了灰色,显示异常:

    经检查发现,不设置height就正常了。

    const entity = viewer.entities.add({
            name: 'grid' + index,
            show: true,
            rectangle: {
              coordinates: Cesium.Rectangle.fromDegrees(
                ...item
              ),
              material: Cesium.Color.fromCssColorString(gridRegionStyle.fillColor[gridRegionStyle.type]),
              // height: 0, // 不能设置height,否则颜色错误
              outlineWidth: 0,
              heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND
            }
          })
    

      

  • 相关阅读:
    【转载】关于C#中动态加载AppDomain的问题
    poj2239
    poj2231
    poj2229
    poj2234
    poj2236
    前 路
    只含一个单词的句子
    做人准则
    改变人生的32句励志名言
  • 原文地址:https://www.cnblogs.com/dullfish/p/15774462.html
Copyright © 2011-2022 走看看