Skip to content

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