Closed paulsUsername closed 1 week ago
Just an update on this.
The issue was on our backend. We had the incorrect cache policy for our styles. Once we fixed the cache policy the issue was resolved!
I do think it is worth updating the release notes to specify that from 11.4.0 onwards there is strict adherance around cache policy for styles jsons.
Environment
Observed behavior and steps to reproduce
Map is entirely blank intermittently and is not properly loaded (i.e. onMapLoaded is never called) but I can see annotations on the map, for example user location or added lines or markers but no tiles ever load onto the map.
While in its error state: mapView.mapboxMap.styleURI correctly returns the expected style URI. mapView.mapboxMap.isStyleLoaded returns false
Expected behavior
I expect the style to load and the map to show its map tiles.
Notes / preliminary analysis
This happens regardless of wether the style pack is downloaded for offline. I have a strong internet connect at the time so its not the issue at hand.
Additional links and references
Our style sheet is version 8.
I am getting this earning on layers that will not load.
This is the most consistent Item I am seeing in relation to the issue!
This warning is not showing on styles that continue to work.
Highly suspect its something to do with this!:
Some Code: