-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Issue an error when map canvas is larger than allowed by gl.MAX_RENDERBUFFER_SIZE #2893
Comments
Thank you thank you thank you @stepankuzmin. 🙇 Your commit is on the right track. I'll leave my feedback as comments on that commit. |
I've made a PR. |
This change was reverted in #3986 because it caused #3915 in Firefox. Reopening. Note that #2673 doesn’t seem to reproduce anymore: #3915 (comment). |
Just wanted to add that this change broke iPhone (6,6s,7) Plus and iPads with Retina Display support when the map was initialized as a full screen map. iOS have a MAX_RENDERBUFFER_SIZE of 4096, so please make sure that that it works with resolutions up and including 2732px. |
We still need to issue an error or not? |
@stepankuzmin I'm going to add a warning message instead of an error. There are some systems in which we're firing an error and unnecessarily breaking functional maps. |
Once the map canvas is larger than
gl.MAX_RENDERBUFFER_SIZE / 2
, scaling behaviour starts to occur. I do not think we should invest significant resources into accommodating this case.See #2673 and #2863
The text was updated successfully, but these errors were encountered: