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

Map Canvas larger than half of gl.MAX_RENDERBUFFER_SIZE(2048) #3935

Closed
stackTom opened this issue Jan 10, 2017 · 3 comments
Closed

Map Canvas larger than half of gl.MAX_RENDERBUFFER_SIZE(2048) #3935

stackTom opened this issue Jan 10, 2017 · 3 comments

Comments

@stackTom
Copy link

mapbox-gl-js version:

Steps to Trigger Behavior

  1. create wkwebview app on ios

Expected Behavior

map loads

Actual Behavior

map doesn't load

My mapbox web application doesn't load with the latest 0.30 on iOS. In Safari on iOS, it loads fine, but on chrome for iOS, the map never loads. I made a simple wkwebview app to diagnose the problem, and opened up safari on my mac to see the output of the console. The error I get is:

[Error] Error: Map canvas (1568x2440) is larger than half of gl.MAX_RENDERBUFFER_SIZE (2048)
_setupPainter (mapbox-gl.js:207:10914)
e (mapbox-gl.js:207:1847)
addMapToPage (mainMap.js:757)
(anonymous function) (mainPage.js:618)
What is wrong? If I browse the mapbox API site and view examples, everything works fine. My map takes up a div that is almost 100% width and height, could this be a clue?

@stackTom
Copy link
Author

The page renders fine on gl js 0.28.0.

@gkostyanikov
Copy link

Same issue in firefox 50.1. Works normally in chrome and safari.
0.28 version worked in all three.

@jfirebaugh
Copy link
Contributor

Duplicate of #3915.

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

3 participants