CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.98k stars 3.5k forks source link

when an Entity has billboard and point an set CLAMP_TO_GROUND OR RELATIVE_TO_GROUND billboard will be disappear; #7357

Open xxbld opened 5 years ago

xxbld commented 5 years ago

when an Entity has billboard and point an set CLAMP_TO_GROUND OR RELATIVE_TO_GROUND billboard will be disappear;

image

viewer.entities.add({
    position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
    point:{
        heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,
        pixelSize: 10
    },
    label:{
        text:'111',
        heightReference:Cesium.HeightReference.CLAMP_TO_GROUND
    },
    billboard :{
        heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,
        image : '../images/Cesium_Logo_overlay.png'
    }
});
hpinkos commented 5 years ago

Thanks for reporting this and including the code example @xxbld! This might be related to #6087, but I'm not 100% sure.

I'm not sure how soon we'll be able to look into fixing this, but we'd be happy to review a pull request if you find a fix! For now, I would recommended adding the billboard as a separate entity as a workaround.

Southjor commented 1 year ago

当前版本为 1.103.0,还是存在这个问题,请问官方会解决吗?