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