Hello,
sry first, but my english is not so good.
is there any option to foresee for the precipitation or the clouds.
actually for witch date is this:
<html>
<head>
<title>Open Weather Map</title>
<script src="http://openlayers.org/api/OpenLayers.js"></script>
</head>
<body onLoad="init()">
<div id="basicMap"> </div>
</body>
<script type="text/javascript">
function init(){
var map = new OpenLayers.Map("basicMap");
var mapnik = new OpenLayers.Layer.OSM();
var layer_cloud = new OpenLayers.Layer.XYZ(
"clouds",
"http://${s}.tile.openweathermap.org/map/clouds/${z}/${x}/${y}.png",
{
isBaseLayer: false,
opacity: 0.7,
sphericalMercator: true
}
);
var layer_precipitation = new OpenLayers.Layer.XYZ(
"precipitation",
"http://${s}.tile.openweathermap.org/map/precipitation/${z}/${x}/${y}.png",
{
isBaseLayer: false,
opacity: 0.7,
sphericalMercator: true
}
);
map.addLayers([mapnik, layer_precipitation, layer_cloud]);
var lonlat = new OpenLayers.LonLat(500000, 6300000);
map.setCenter( lonlat, 7 );
map.addControl(new OpenLayers.Control.LayerSwitcher());
}
</script>
</html>