I got the coordinates using javascript like this: I get the boundaries of my visible map like this: var bounds = map.map.getBounds(); var southWest = bounds.getSouthWest(); var northEast = bounds.getNorthEast();
var minLat = southWest.lat(); var maxLat = northEast.lat(); var minLong = southWest.lng(); var maxLong = northEast.lng(); The dateline is not showing because the map has been dragged beyond it. I have a local installation only at this point. But I think the picture pretty much shows what is happening. On Aug 20, 11:13 am, Andrew Leach <[email protected]> wrote: > On Aug 20, 8:27 am, wweyland <[email protected]> wrote: > > > > > Most of the time this works fine. bounds.getSouthWest() returns the > > bottom-left coordinates and bounds.getNorthEast() returns the top- > > right coordinates. > > > But when I cross the longitude of 180 (the point where 180 degrees > > turns into -180 degrees), I start getting weird results for the > > boundaries. > > Your map as shown doesn't cross the date line. In fact the date line > is not visible at all. > > > How can I be sure to always get the bottom-left coordinates of the map? > > It would be helpful if you could say how you got the coordinates you > did. The posting guidelines do point out that it's not possible to > debug a picture. -- 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.
