Map style doesn't completely load on ios devices causing map.isStyleLoaded() to never return true. Sources and layers that rely on the map style to be loaded never get added to the map.
On Android devices the map style finishes loading as expected.
mapbox-gl-js version:
v0.54.0 and v0.53.1
browser:
Chrome and Safari
Tested with various iphones and emulated iphones through browserstack running iOS 11 and iOS 12.
Map style doesn't completely load on ios devices causing
map.isStyleLoaded()
to never returntrue
. Sources and layers that rely on the map style to be loaded never get added to the map.On Android devices the map style finishes loading as expected.
mapbox-gl-js version: v0.54.0 and v0.53.1
browser: Chrome and Safari Tested with various iphones and emulated iphones through browserstack running iOS 11 and iOS 12.
Link to Demonstration
https://jsbin.com/hejusej (API key redacted)
The jsbin outputs to the console if the style is loaded or not and retries every second.
Expected Behavior
Video source and layer should be added to the map when
map.isStyleLoaded()
returnstrue
.Actual Behavior
map.isStyleLoaded()
never returnstrue
on iOS devices so video source and layer are never added to the map.Android console of jsbin using browserstack:
iOS console of jsbin using browserstack: