[OpenLayers-Users] WMS overlay disappearing with Google Maps v.3

Phil Scadden p.scadden at gns.cri.nz
Sun Apr 21 14:30:30 PDT 2013


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130422/8b086690/attachment.html>


More information about the Users mailing list