McCulloughRT / BuildingsReact

Creating a React/Redux wrapper around Mapbox
27 stars 5 forks source link

How to change new style? #2

Open noeltech opened 6 years ago

noeltech commented 6 years ago

I only see one style with your const STYLE_ID = 'ryantm/cj8m5f0136ll12sk7nm8dj00k';

how do i change to a new style coming from another style ID..like changeing from mapbox styles basic to street or to terrain

McCulloughRT commented 6 years ago

just change the style id to a different string, to match the style id you receive from Mapbox studio for the style you want. It should be whatever comes after the "mapbox://styles/" in the URI.

streets for example would be "mapbox/streets-v9".