react-native-mapbox-gl icon indicating copy to clipboard operation
react-native-mapbox-gl copied to clipboard

Just displaying land and sea on iOS (#master)

Open timoshisa opened this issue 5 years ago • 1 comments

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.

timoshisa avatar Dec 27 '19 11:12 timoshisa

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.

tsemerad avatar Dec 30 '19 21:12 tsemerad