react-native-mapbox-gl
react-native-mapbox-gl copied to clipboard
Just displaying land and sea on iOS (#master)
I'm drawing a basic map using a stylesheet defined in Mapbox Studio.
When rendering the map using the below code, it just renders land and sea, without any roads or other layers.
<MapboxGL.MapView
zoomLevel={14}
centerCoordinate={[-2.2911364, 53.4182286]}
style={styles.map}
styleURL="mapbox://styles/tbehrsin/ck4o0jee605h91cqkg7d3oj44"/>
What could be the issue?
It works fine if I remove styleURL, but then obviously it's the wrong stylesheet. I've also tried setting the compatibility options in Mapbox Studio to various old library versions with no effect.
Could you try using the react-native-mapbox-gl/maps repo? This one is no longer maintained. The new repo has a lot of bug fixes and new features, and uses newer versions of the Mapbox SDKs.