nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

Just displaying land and sea on iOS (#master) #1671

Open timoshisa opened 4 years ago

timoshisa commented 4 years ago

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.

tsemerad commented 4 years ago

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.