Hi Ulrik,
The maxExtent property of your map object needs to be set with appropriate
coordinates so that tile requests include the proper bounds. By default the
maxExtent property assumes a geographic projection (see
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.maxExtent).
This is why your Request2 bounding box starts with -179 and -90. Include
something like:
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508)
in your map config options (this includes the whole world). So, for example,
your code might look something like this:
mapBroken900913 = new OpenLayers.Map
(
"mapBroken900913",
{
projection : "EPSG:900913",
maxResolution:2319.89824519781,
units:'m',
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
20037508,
20037508)
}
);
Hope this helps.
Regards,
Kris
-----
Kris Peterson
www.mapbiquity.com
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Background-Layer-in-EPSG-900913-causes-WMS-overlays-to-fail-tp6180162p6183276.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev