I like the flexibility that Cesium gives with several layers of APIs, and find Entity API very powerful and convenient.
CallbackProperty for instance gives an easy way for building dynamic visualizations.
The only thing I haven’t find in API reference and in code samples is
how get the Entity reference from a called CallBackProperty Callback function.
Imagine that we have many models and wish for each to show a dynamic Label or Billboard with
a current information about speed and position.
I can do that with CallBackProperty but as for now I create a different Callback function for each Entity.
I checked the context of the call, but it gives just CallBackProperty itself and no reference to which Entity it belongs.
Thank you, Hannah, for the quick response and creation GitHub request.
I think the easy way to implement this would be just to add the third variable to the call of a callback
I think that’s everything. I’m not sure if that’s the best way to implement it, but that’s probably where I would start. The Entity API implementation is very complicated, so I’m not 100% sure. Someone else might have a different suggestion.