Load data into description box before it pops up

Hello,

I was wondering if it was possible to load data into an entity's description box BEFORE the box pops up, but after clicking on the entity. In other words I want:
1) Click on an entity
2) Do some server side queries to generate the description of the entity.
3) Set the description to the one generated
4) Display the description box.

One reason I want to do this is to avoid memory issues. If all of the new descriptions were queried and loaded, it would take longer to load the page, and might cause other issues. (Let me know if you don't think that would be a problem, and I can just pre-load the descriptions.)

Thanks for the help,
Brandon

Hello Brandon,

In order to achieve this, I think you’ll have to make changes to the code in Viewer. Here are the lines of code that set the infobox description: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Widgets/Viewer/Viewer.js#L1519-L1520

Take a look at our build guide for instructions on checking out the code base and building the code: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Documentation/Contributors/BuildGuide/README.md

Best,

Hannah

Thank you very much for your response!! I'll give it a shot.