[OpenLayers-Users] WMS SRS:EPSG4326 with OpenLayers doesn´t work

Bytechanger Bytechanger at gmx.de
Wed Oct 7 02:51:42 EDT 2009


Hi,

I want add a baselayer from WMS in EPSG 4326
but this doesn´t work!

1.
   map=new OpenLayers.Map('map', { projection: new
OpenLayers.Projection("EPSG:4326"), ...);

2. var TestLayer= new OpenLayers.Layer.WMS("Test", "http://www.geo
....?", { REQUEST: 'getMap', SRS:'EPSG:4326' ...},{isBaseLayer:true});

map.addLayer(TestLayer);

But I don´t see anything !! No mapdata....

when I want to get the WMS-Request...
  TestLayer.getURL(map.Extent());
I get wrong EPSG !!!! the Request inherits:  &SRS=EPSG%3A4326   <- RIGHT!
                                                                  
&BBOX=-76506.698386357, and so on  <- WRONG Coordinate Format!!!!!!

map.Extent() returns also the wrong format !!!!!!!!

Please can someone help me??

Greetings

Byte



More information about the Users mailing list