react-native-mapbox-gl / maps how to change styles?

2.5k Views Asked by At

I see there layers in documentation. https://github.com/react-native-mapbox-gl/maps#layers But I can't understand how I can change color of buildings and roads. And how to change text in labels. And fontsize. Please help. My task is to do contrast white-black map.

2

There are 2 best solutions below

3
On BEST ANSWER

you can design your map at https://studio.mapbox.com/. When you publish a map, you will get a style url

Then you can add to style url to your map like this:

<MapboxGL.MapView
  styleURL="mapbox://styles/tijsmartens/ckjr7xuda2j0k19pjmx8hczud"
/>
       
0
On

To add on to the above answer, you can use mapbox's default styles likeso styleURL={Mapbox.StyleURL.Dark}