[OpenLayers-Dev] Background Layer in EPSG:900913 causes WMS overlays to fail

Ulrik Balslev ubalslev at gmail.com
Thu Mar 17 05:18:00 EDT 2011


Hi List,

I have a problem with an overlay WMS layer not being shown when zooming in
on the map.

The problem seem to only occur when using a background WMS Layer in
EPSG:900913.

I have created a demonstration page available here:

andarki.dk/Stackoverflow/OpenLayers/WMS.html

Both maps are identical, except for the background map.

The left map is using a Background map in EPSG:4326, while the 2nd
background map is using EPSG:900913.

If you zoom in, you will notice that the Nexrad layer only stays visible at
the left map.

There is also a 3rd map, which explicitly sets the map object to use
EPSG:900913, but otherwise is similar to the 2nd map.


If you look at the two requests being sent to the Nexrad server for the
second map, the BBOX is wrong:

Request1: BBOX=-5009557.0848,-90.000000001863,-179.99999999814,5009287.0848

Request2: BBOX=-179.99999999814,-90.000000001863,5009197.0848,5009287.0848

These coordinates (in EPSG:900913) corresponds to Africa, not North America
as expected.


Thanks for any input

Best regards



Ulrik Balslev,
breakoutimage, Denmark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110317/a7a303d6/attachment.html


More information about the Dev mailing list