Has anyone had any success using Open Weather Maps or any other provider of weather data? It seems like it should be something simple but all I seem to get is a white globe for clouds and none of the other maps work (precipitation_new, wind_new, etc.). Code snippet below.
var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider({
url : ‘http://{s}.tile.openweathermap.org/map/clouds_new/{z}/{x}/{y}.png?appid={api_key}’,
layer : ‘Clouds’,
style : ‘default’,
format : ‘image/png’,
tileMatrixSetID : ‘a’,
maximumLevel: 18
}));
If there is something better than OWM, I’m good with that. Any help would be appreciated. Thanks!
I use a WMS feed direct from noaa.gov:
http://idpgis.ncep.noaa.gov/arcgis/services/NWS_Forecasts_Guidance_Warnings/watch_warn_adv/MapServer/WMSServer
That's warnings, not live weather, but there are other services listed at
https://idpgis.ncep.noaa.gov/arcgis/rest/services
I just pulled up the "base reflectivity radar" at http://idpgis.ncep.noaa.gov/arcgis/services/radar/radar_base_reflectivity_time/ImageServer/WMSServer and it looks like what I typically think of as a weather map.
They even set their CORS headers, so you don't need a proxy!
R/
James
Hey James,
Thanks for the info. Do you have a code snippet you can provide of your usage with NOAA? I haven’t had any luck. Keep getting errors failing to obtain image tiles.
Thanks!
This works for me:
Note that the HTTP version redirects through to HTTPS, but the redirect isn't served with an Access-Control-Allow-Origin header so the browser won't follow it. Maybe that was your issue? All this gets *much* easier when making your requests through a proxy...
-J
I see this is for USA bbox / region. Is there something similar world wide?
- I want to show 3D clouds when I tile the globe in a ‘plane’ modus to see the clouds also above the mountains. Did someone do this already?
Mvg,
Richard Zijlstra
Director & owner Geoneer
Hey Geoneer,
There is a cool cloud rendering screenshot we retweeted from @GeoFlightSim. Maybe encourage them to contribute!
Thanks,
Gabby