-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve MapboxImageryProvider documentation #9081
Comments
@Maarondesigns which doc were you looking at? This one has an example that works with https://cesium.com/docs/cesiumjs-ref-doc/MapboxStyleImageryProvider.html?classFilter=MapboxStyle This would be the easiest way to add it to your app:
There was some discussion about removing |
Perhaps it would be best to remove the old provider, since there's nothing you can do with the deprecated API that you can't do with the new one. |
@OmarShehata, your code worked perfectly for me. Thank you very much! |
After the recent change removing default mapbox imagery, I struggled for a few hours to implement it on my own. The documentation for
MapboxImageryProvider
only gives one tiny example which only works for satellite imagery with no labels. I was not ever successful getting any other mapbox imagery to display using that class, however, I eventually got it to work usingUrlTemplateImageryProvider
and just passing in the entire url string:To add to the baselayer picker this is my complete code:
For classic streets just replace
satellite-streets-v11
withstreets-v11
.It took some serious digging to find the correct names for a tilesets in Mapbox's documentation.
Hope this helps anyone in a similar situation.
The text was updated successfully, but these errors were encountered: