Skip to content

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

@stackTom

Description

@stackTom

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions