|
From: Edwin C. <com...@gm...> - 2010-03-12 17:23:59
|
Hi Greg, By setting the JSObject on wmsParams2 you let wmsParams2 wrap the JSObject you create, overriding the JSObject it created internally on which the layers, tranparancy etc were set. I think it should work if you set all properties on a newly created JSObject, including layers, transparency etc. Did you try if it works in Javascript? Greetings, Edwin On 12 March 2010 17:33, Greg Machala <Gre...@no...> wrote: > 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 > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |