Veranika Perovskaya
Veranika Perovskaya

Reputation: 23

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

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.

Upvotes: 1

Views: 3103

Answers (2)

abdi
abdi

Reputation: 589

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

Upvotes: 0

Tijs Martens
Tijs Martens

Reputation: 296

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"
/>
       

Upvotes: 4

Related Questions