OpenStreetMapImageryProvider as provider for imagery in cesium.com (ion-assets)

1. A concise explanation of the problem you’re experiencing.

Hi i would like to integrate Stamen-Toner and Openweathermap in Cesium ION as imagery, ideally with the fileExtension-option to add my personal appid or another option to extend the url with my auth-key.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

I need the equivalent to the following code in cesiumjs:

**** addBaseLayerOption(
‘Stamen Maps’,
Cesium.createOpenStreetMapImageryProvider({
url : ‘https://stamen-tiles.a.ssl.fastly.net/toner-lite/’,
fileExtension: ‘png’,
credit: ‘Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.’
}));
addBaseLayerOption(
‘Open Weather Map’,
Cesium.createOpenStreetMapImageryProvider({
url : ‘https://tile.openweathermap.org/map/pressure_new/’,
fileExtension: ‘png?appid=mypersonalkey’,
credit: ‘Openweathermap’
}));

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

Because i want to replace everthing related to a personal key or auth-token with ion-assets for having a central place where all my persnal keys are stored.

4. The Cesium version you’re using, your operating system and browser.

1.51, MacOS, Firefox

Thank you,

Jörg

So are you saying that sample code you have there currently works, but you’d rather have an asset in ion that would stream data from those services on your behalf (the same way Bing is streamed through your ion account)?

If so, that sounds like a cool feature that you should bring up on the ion repo (https://github.com/AnalyticalGraphicsInc/cesium-ion-community). So currently we only have Bing but it would be cool to extend that to more services you can get through ion.

Posted in https://github.com/AnalyticalGraphicsInc/cesium-ion-community/issues/65