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
The Label property show defaults to false and showBackground defaults to true. Adding labels with LabelCollection and setting the Label's show to true should display the Label background, but it doesn't
Reproduction steps
const viewer = new Cesium.Viewer("cesiumContainer");
PFeiJia
changed the title
There is a problem with the tag's showBackground setting to true
There is a problem with the label showBackground setting to true
Dec 24, 2024
PFeiJia
changed the title
There is a problem with the label showBackground setting to true
There is a problem with setting showBackground to true for label
Dec 24, 2024
What happened?
The Label property show defaults to false and showBackground defaults to true. Adding labels with LabelCollection and setting the Label's show to true should display the Label background, but it doesn't
Reproduction steps
const viewer = new Cesium.Viewer("cesiumContainer");
const labels = viewer.scene.primitives.add(new Cesium.LabelCollection());
const label = labels.add({
show:false,
showBackground: true,
position : new Cesium.Cartesian3(1.0, 2.0, 3000000.0),
text : 'label showBackground',
});
setTimeout(()=>{
label.show = true;
},1000);
Sandcastle example
No response
Environment
Browser: Google
CesiumJS Version: 1.122
Operating System:Windows 11
The text was updated successfully, but these errors were encountered: