The international date line goes through the map. Your code switches the
lngs when that happens, so the range of lngs that you're looking at is
the part of the world that's *outside* the viewport.

When you set zoom level 2, the ranges of longitude that are inside the
viewport are
     41.1328125 to 180
     -180 to -97.38281250000001
Sydney is inside the first of those

When you use zoom level 5, the range of longitudes outside the map gets
larger.

Delete these lines from your test page:

  if (maxLat < minLat) {
    maxLat = swPoint.lat();
    minLat = nePoint.lat();
  }

  if (maxLng < minLng) {
    maxLng = swPoint.lng();
    minLng = nePoint.lng();
  }


-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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