[OpenLayers-Users] WMS Layer not supporting SRS parameters

Christopher Schmidt crschmidt at metacarta.com
Sun Mar 30 22:50:47 EDT 2008


On Sun, Mar 30, 2008 at 07:40:49PM -0700, ITBeyond wrote:
> 
> I have been trying various options on this for ages when I set isBaseLayer
> true the projection is used in the WMS query (from the projection: option
> and not the WMS params SRS), if I set isBaseLayer true the projection
> function is ignored. The parameter SRS in the WMS params field never seems
> to work.

That is correct. OpenLayers takes the projection from the Map
'projection' parameter: 

 m = new OpenLayers.Map("map", {projection:"SRS:4283"});
 m.addLayer(new OpenLayers.Layer.WMS(..., {isBaseLayer: false});

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list