On Nov 6, 7:45 am, Tim Redfern <[EMAIL PROTECTED]> wrote:
> I'm seeing strange behaviour in internet explorer 7 when trying to
> resize the map to accomodate markers.
>
> It works as it should in firefox and safari, but in IE the extend()
> function seems to give an answer that is far too zoomed out, although
> only when it is invoked during loading.
>
> Seehttp://www.tcd.ie/Maps/map.php?q=Aras%20an%20Phiarsaigh
>
> The code seems pretty foolproof..
>
> var boundscheck=map.getBounds();
>                 if (!boundscheck.contains(this.pos))
>                 {
>                         boundscheck.extend(this.pos);
>                         var newzoom = map.getBoundsZoomLevel(boundscheck);
>                         if (newzoom<15) map.setMapType(G_NORMAL_MAP);
>                         map.setZoom(newzoom);
>                         map.setCenter(boundscheck.getCenter());
>                 }
>

You might want to do something like this:
http://esa.ilmari.googlepages.com/showbounds.htm

so you can see what is going on.

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to