From: Greg M. <Gre...@no...> - 2010-03-12 16:36:23
|
Hello, I am new to OpenLayers GWT and really like it a lot. I am working with maps on a local GeoServer and it works great. I am running into difficulty trying to load a WMS radar image from this site: public static final String WMS_RADAR_URL = "http://radarcache.srh.noaa.gov/tilecache/tilecache.py"; using this method: private Layer getRadarLayer() { WMSOptions wmsOptions = new WMSOptions(); wmsOptions.setSingleTile(false); wmsOptions.setIsBaseLayer(false); wmsOptions.setBuffer(0); WMSParams wmsParams2 = new WMSParams(); wmsParams2.setLayers("radar_slice"); wmsParams2.setIsTransparent(true); wmsParams2.setFormat("image/png"); JSObject jsObject = JSObject.createJSObject(); jsObject.setProperty("radar", "NAT"); jsObject.setProperty("level", "NET"); jsObject.setProperty("tiled", "true"); jsObject.setProperty("time", "2010-03-11T17:00"); wmsParams2.setJSObject(jsObject); return new WMS("Radar", WMS_RADAR_URL, wmsParams2, wmsOptions); } The tilecache.py needs the variables set for radar=,level=,time= to grab the right image am I doing this correctly? Thanks, Greg Machala ITO-National Weather Service-BHM,AL |