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

More than 16 maps on a page // Callback if browser invalidates WebGL context #526

Open
derwaldgeist opened this issue Mar 10, 2023 · 0 comments

Comments

@derwaldgeist
Copy link

derwaldgeist commented Mar 10, 2023

Feature Request:

We're building an app for experiences in multiple cities, which is why we wanted to have multiple maps on one web page. When we added more than 16, suddenly the first maps disappeared. We learned that there is a browser restriction (in Chrome and Firefox) that a maximum of 16 WebGL contexts can be used.

https://stackoverflow.com/questions/50684887/is-there-any-maps-per-page-limitation-in-mapbox-gl

https://stackoverflow.com/questions/33800600/error-webgl-exceeded-16-live-webgl-contexts-for-this-principal-losing-the-lea

It seems as if Mapbox GL throws and error in this case, but Urbica Maps won't. Is there maybe a way to catch this via an error callback?

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