How to use openweathermap in cesium?

Hi, I want to use the openweathermap in cesium. But i could not load out . Below is my code

    var imageryLayers = viewer.imageryLayers;

     imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider({

         url: 'http://maps.openweathermap.org/maps/2.0/weather/TA2/{z}/{x}/{y}?date=1527811200&opacity=0.9&fill_bound=true&appid=mykey',

        layer: 'Clouds',

         style: 'default',

         format: 'image/png',

         tileMatrixSetID: 'a',

         maximumLevel: 18,

         proxy: new Cesium.DefaultProxy('/proxy/')

     }));

I was able to get this to work using the 1.0 API (since it’s free).

Hope that helps.

3 Likes

Thanks a lot Scott!!
Working now !

Best regards.