-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a demo showing how a single entity can be split across CZML files. #6320
Conversation
@emackey, thanks for the pull request! Maintainers, we have a signed CLA from @emackey, so you can review this at any time.
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Demoing off a branch always seems slow, but, here's the link: EDIT: Use @mramato's link below instead. |
Thanks, that seems faster. |
Awesome @emackey, thanks for adding this so quickly. To make this a more complete example for the folks requesting it, could you please swap out the billboard with the milktruck or another model. Just do whatever is reasonable for orientation even if it is export something quick from STK. Would also love to see the latest way to use a custom property and display it as an overlay. |
OK, branch is still building but demo link will be the same when it's done. The 3D model is used now with auto-orientation from Cesium. A multi-part custom property "fuel remaining" has been added, split across all 3 parts of the CZML. Cesium automatically interpolates the value smoothly, even between values that came from different CZML files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Awesome, thanks again! |
This demo adds a copy of the existing Vehicle.czml file, split across 3 new files. The demo loads only the first part, and watches the clock to see when other parts are needed.
Of course, for such a small vehicle path, this extra work isn't required. It's just here to show how the parts would fit together in a larger application that needed to split up CZML files.
TODO:
@shunter Any chance you can review?
/cc @pjcozzi @mramato