[OpenLayers-Users] GeoExt + OpenLayers: WMS tiles come back but
don't layer onto OSM
Jefferson Heard
jefferson.r.heard at gmail.com
Wed Jun 16 12:37:08 EDT 2010
Actually, this is a bit weirder than I thought it was. I am actually reprojecting properly on the server: I checked the GeoServer logs. Also, if I put a WMSGetFeatureInfo control into the mix, the results of GetFeatureInfo are 100% correct. So... it's just not displaying the tiles?
On Jun 16, 2010, at 11:52 AM, <christopher.schmidt at nokia.com> <christopher.schmidt at nokia.com> wrote:
>
> On Jun 16, 2010, at 11:47 AM, ext Jefferson Heard wrote:
>
>> I'm trying to layer a WMS layer onto an OpenStreetMaps map. I'm getting WMS layers from WMSGetCapabilities records coming from GeoExt. My base layer is, of course, spherical mercator (OSM), but my WMS layers are EPSG:4326 - namely the NOAA Weather Radar Mosaic and IR base reflectivity images. Does anyone know how to do this? Currently, I'm doing this:
>>
>> var grid = Ext.getCmp('avail_overlays_grid');
>> var record = grid.getSelectionModel().getSelected();
>> if(record) {
>> var copy = record.copy();
>> copy.data["layer"] = record.get("layer");
>> copy.get("layer").mergeNewParams({
>> format: "image/png",
>> transparent: true,
>> reproject: true
>> });
>> copy.get("layer").shared=false;
>> copy.get("layer").displayInLayerSwitcher=true;
>> panel.layers.add(copy);
>> }
>
> All raster layers must be in the same projection. OpenLayers
> can't reproject images.
>
> Regards,
> --
> Christopher Schmidt
> Nokia
>
More information about the Users
mailing list