Skip to content

Map overlays: Weather overlay #25

@JeffHeck

Description

@JeffHeck

Here you go.. example script.. but might work with ingesting the WMS Doppler with google maps..

I am not sure on the updated data or how often it loads, might be something to look into if you do this. But to gain access to these datasets like a Doppler, I think a Web Mapping Service is the best way to go within Google J Attach this to a Doppler button boom!!

http://en.wikipedia.org/wiki/NEXRAD This is the WMS layer radar you would be gaining access to with this link below.. Next generation Radar.. anyways, fun to know about this kind of stuff right.. and this is the actual access link, however with this script below you are pulling it in via wms.. http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi

var nexrad_wms = new OpenLayers.Layer.WMS( "NEXRAD
BASE REFLECT M45 MINS",
"http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi",
{layers: 'nexrad-n0r-m45m',
exceptions:"application/vnd.ogc.se_xml",
transparent: "true", format: "image/png"},
{ tileSize: new OpenLayers.Size(256,256),
buffer: 1 } );

nexrad_wms.setVisibility(true);
map.addLayer(nexrad_wms);

Looks like they have an android port.
http://trac.osgeo.org/openlayers/wiki/mobile

A few people were saying that it worked really really slowly, though.

///////////////////
http://mesonet.agron.iastate.edu/ogc/

var tileNEX = new GTileLayer(null,null,null);
tileNEX.getTileUrl = function(tile,zoom) {
/* Include date at the end as a cachebuster */
return "http://mesonet.agron.iastate.edu/cache/tile.py/1.0.0/nexrad-n0q-900913/"

  • zoom + "/" + tile.x + "/" + tile.y +".png?"+ (new Date()).getTime();
    };
    tileNEX.isPng = function() { return true;};
    tileNEX.getOpacity = function() { return 0.5; }

var layer4=[G_NORMAL_MAP.getTileLayers()[0],tileNEX];
var custommap4 = new GMapType(layer4, G_SATELLITE_MAP.getProjection(), "Nexrad", G_SATELLITE_MAP);
map.addMapType(custommap4);

//////////////////////////
http://code.google.com/p/android-eksempler/source/browse/trunk/AndroidElementer/src/eks/kort/KortAktivitet.java?r=118

//////////////////////////
http://stackoverflow.com/questions/507441/best-weather-apis/507505#507505

http://www.wunderground.com/weather/api

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions