Skip to content
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 wait and progress options to Viewer.switchScene #421

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trevorparscal
Copy link

@trevorparscal trevorparscal commented Oct 28, 2021

wait: Allows optionally waiting until visible tiles are loaded before transitioning.
progress: Allow optionally providing a callback which is executed with progress values as visible tiles are loaded

wait: Delays transitioning to the new scene until all visible tiles are
loaded. If the user rotates the camera while loading, it may take longer
to load.

progress: Calls a function as progress loading visible tiles is made.
can be used with or without wait. Progress values are given in the range
of [0..1] and may go down if the user rotates the camera, bringing new
tiles into view.
When switching to another scene while already waiting for a scene to
load, remove the previous monitoring events and layers of the previously
requested scene.
@trevorparscal trevorparscal changed the title Switch scene cancel Add wait and progress options to Viewer.switchScene Oct 28, 2021
@jordyno
Copy link
Contributor

jordyno commented Nov 18, 2021

@tjgq could you please look into this, seems like an excellent addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants