Get list of billboards in order to update

I’m needing to get a list of all billboards in order to update their eyeDistance. How can I get that list of billboards that are rendered on the map?

How are you adding your billboards to the scene? If you’re using the Entity API I believe the engine will keep them in a BillboardCollection, which isn’t directly exposed but it should be in the scene’s primitive collection: https://cesium.com/docs/cesiumjs-ref-doc/Scene.html?classFilter=scene#primitives.

Otherwise if you’re adding them through a data source you can iterate over all entities created by that data source.

1 Like

I’m using ol-cesium which converts OpenLayers points to Cesium billboards, so unfortunately that’s hidden from me. I was hoping there’d be a way to get the Billboards that were added to the Cesium map through Cesium.