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

Need to detect when GL is finished painting after addLayer() is called #2218

Closed
peckjon opened this issue Mar 3, 2016 · 2 comments
Closed

Comments

@peckjon
Copy link
Contributor

peckjon commented Mar 3, 2016

#826 provides a way to detect when a map first finishes loading.

However, there can also be a significant gap between when map.addLayer() is called and when all shapes in that layer are fully rendered, especially for complex/dense shapes.

Can an event or callback be added to detect this?

@peckjon
Copy link
Contributor Author

peckjon commented Mar 3, 2016

Incidentally, I thought I could get at this by waiting for the GL context to finish rendering, but (map.getCanvas().getContext('webgl') || map.getCanvas().getContext('experimental-webgl')).finish(); does not appear to block until the paint is complete.

@jfirebaugh
Copy link
Contributor

Yes, we're tracking this in #1715, with additional discussion in #1904.

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

2 participants