Expose model ready through the Entity API
See original GitHub issueUsers want to know when the model is ready so they can have custom functionality when the model is loading and when the scene is ready
From #3910:
Unfortunately this approach won’t really work well for several reasons. The model can change dynamically with time or programatically, but the ready promise can only resolve a single time. So promises may not be the best context here. Additionally, the ModelGraphics object may actually be associated with several different visualizers, so there may not be a single “model ready” event.
Maybe tie it into the boolean returned from DataSourceDisplay.update? This boolean is supposed to the true when when all data sources are ready to be displayed and false otherwise.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Expose Model through the entity API · Issue #7378 - GitHub
The Entity API is meant to provide a level of abstraction away from the underlying primitives. Depending on whether you're using certain dynamic ......
Read more >Build and consume data entities - Dynamics 365
This tutorial shows how to build an entity and how to consume some out-of-band (OOB) entities in an integration scenario.
Read more >How can i get model loading event in cesium viewer
A future version of Cesium should expose Model.ready and Model.readyPromise to Entity API, but currently that's not implemented.
Read more >Creating a machine learning-powered REST API with Amazon ...
You are now ready to build and train the model in your notebook. This notebook creates two model inference endpoints (one for ratings...
Read more >Sharing your machine learning models through a common API
DEEPaaS API is a software component developed to expose machine learning models through a REST API. In this article we describe how to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I don’t have a good answer for what to do for things like this, other than “don’t use the entity API for models” =/ There’s a reason we didn’t add 3D Tiles to the Entity API. If you want more control, you need to work with the primitives at a lower level. These kind of use-cases are just really not what the Entity API was designed for.
Here’s a potential use case that can’t be done in the Entity layer that I don’t see addressed here. This forum thread is trying to use
viewer.trackedEntity, which will not work immediately if the model isn’t loaded. This delay could be anywhere between a few milliseconds to several seconds. The application developer just needs to know when it’s ready to display some sort of loading message/reaction to the user in the mean time. Aentity.model.isLoadedboolean could potentially solve this.Thoughts?