function test1() {
var bounds = new OpenLayers.Bounds(-3785006.7128486, 2429373.3721214,
3729058.9146514, 8064922.5927464);
var maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90);
var worldBounds = new OpenLayers.Bounds(-20037508.34,
-20037508.34, 20037508.34, 20037508.34);
if (bounds.intersectsBounds(maxExtent, {inclusive: false,
worldBounds: worldBounds})) {
return "Intersected";
}
return "Not intersected";
}
Hmm, I cant see how this would work when you have bounds in different
projections. I always explicitly set projections and maxExtent in my map
options. Can you verify that the OL thinks the map projection is 900913?
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users