You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when the label entity set showBackground=true, and heightReference=Cesium.HeightReference.CLAMP_TO_GROUND,can not move the viewer when you mouse on the label.
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(86.925145, 27.9822222),
label : {
showBackground: true,
text : '565656',
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
disableDepthTestDistance: Number.POSITIVE_INFINITY,
}
});
Thanks for the sample code and bug report @hemincan. @hpinkos is this the same root cause as #6840. If so we should close this and link to it from there.
The issue is disableDepthTestDistance: Number.POSITIVE_INFINITY. You can get the same behavior by setting viewer.scene.globe.depthTestAgainstTerrain = false; and removing disableDepthTestDistance altogether. Of course that means you won't be depth testing anything against terrain, so it depends on your use case.
when the label entity set showBackground=true, and heightReference=Cesium.HeightReference.CLAMP_TO_GROUND,can not move the viewer when you mouse on the label.
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(86.925145, 27.9822222),
label : {
showBackground: true,
text : '565656',
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
disableDepthTestDistance: Number.POSITIVE_INFINITY,
}
});
sandcastle example
The text was updated successfully, but these errors were encountered: