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

Update scene without completely reloading? #2321

Open
warpedgeoid opened this issue Apr 28, 2022 · 0 comments
Open

Update scene without completely reloading? #2321

warpedgeoid opened this issue Apr 28, 2022 · 0 comments

Comments

@warpedgeoid
Copy link

warpedgeoid commented Apr 28, 2022

Is it possible to update a scene without having to completely reload it? For example, old docs make reference to methods like queueSceneUpdates() and applySceneUpdates() that no longer exist, but seem to imply this functionality exists.

For context, I'm working on an app that must change a tile source URL periodically based on the current map center coordinates, based on a spatial index structure, and calls to loadSceneFromFile take a bit of time to process due to our complex styles. As a result, the user is subjected to a hard transition with an empty view for ~1-2s. I know that async updates of this nature are supported since we can update the style of markers without reloading the entire scene.

Another example might be updating the parameters for a shader.

Am I missing something obvious here?

My identified workaround is to implement a custom URL handler that redirects in the background, but this seems like it shouldn't be necessary.

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

No branches or pull requests

1 participant