Good morning all,
Sorry for the translation but thanks Google translate :).
I am a beginner on Cesium.
I created 1500 billboards with labels but it takes 20 minutes before they are displayed.
I therefore recreated them within a collection but now they are no longer displayed at all.
Would you have an idea of the problem?
I have other questions to ask you but everything in its time.
I will come back to you when the time comes.
Thank you all
Cordially
Christopher
Hi @christophe89,
Thank you for your question and welcome to the community!
I think that using a BillboardCollection
is the correct approach to your issue. I would love to learn more about your implementation. Can you share some details on how you are adding your Billboards to your BillboardCollection
?
Best,
Sam
Hello Sam,
Thank you for helping me.
I’ve found that when you turn off the terrainProvider, the labels show up immediately. However, the billborads collection still does not appear.
Here is my code
var billboardsCollection = cesiumViewer.scene.primitives.add(new Cesium.BillboardCollection());
var picture = new Image();
picture.src = "./mypicture.png";
billboardsCollection.add({
position: Cesium.Cartesian3.fromDegrees(longitude, latitude),
id : idPoint,
image: picture,
show: true,
pixelOffset: Cesium.Cartesian2.ZERO,
eyeOffset: new Cesium.Cartesian3(0.0, 0.0, 0.0),
horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,//Cesium.VerticalOrigin.BOTTOM, CENTER
scale: 1,
rotation: 0,
alignedAxis: Cesium.Cartesian3.ZERO,
width:24,
height:24,
HeightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0.0, 3000.0),
});
Thanks very much