Integrate mapbox map or style

I have tried so many solutions to integrate an official mapbox map/style or a custom mapbox map/style without success. I have tried with a lot examples int the internet and following docu:

MapboxStyleImageryProvider - Cesium Documentation

Could you provide me a very simple example to integrate mapbox into Cesium JS please.

Thank you very much :blush:

Hi @imedl ,
Thanks for your post and welcome to the Cesium community.

Below is an example sandcastle using the MapboxStyleImageryProvider to import a Mapbox global tileset. You will need to grab your own Default public token from Mapbox studio and paste it in near the top of the sandcastle code.

Please let us know if you run into any issues looking at this example or if this raises further questions.

Best,
Luke

Hi Luke,

thanks for your great response.
Yes, your sample code works fine for styleId: ‘streets-v9’ or styleId: ‘streets-v11’.

But when I try to use my own styleId like “mapbox://styles/imed/cm**********3e9e” then the map does not get loaded.

Any idea? You would me help me a lot with your support.

Best regards!
Imed