visgl/react-map-gl

Add support for latest Mapbox rendering release (V3) [Feat]

ReduxMPX opened this issue · 10 comments

Target Use Case

The Mapbox team recently released V3 (https://www.mapbox.com/blog/standard-core-style)

React-map-gl does not support this yet even when following the migration guide on the aforementioned URL.

Proposal

This would simply allow us to activate the V3.0 Beta while using this library.

What exactly is not supported?

After following all of the migration steps to the best of my ability while still working with this library, the expected results do not appear and the map is just as previous.

I suggest you create a Code Sandbox.

I've managed to add the 3D styles by using:
mapStyle={"mapbox://styles/mapbox/standard-beta"}

To change the styling:

onLoad={(e) => {
   // @ts-ignore
   e.target.setConfigProperty("basemap", "lightPreset", "dusk");
}}

Thanks a ton!
Not sure why I couldn't find the style URL, This worked flawlessly and saved me a headache.

🙏