Holy cow! William you are correct. It works! Thanks so much.
John
On Nov 16, 4:36 pm, William <[EMAIL PROTECTED]> wrote:
> the function fromLatLngToDivPixel() might not return compatible
> coordinates for the longitudes, so you might have to verify the
> results. At high zoom levels Google Maps will repeat images every 360
> degrees. The function fromLatLngToDivPixel must choose one of these
> images. So check if the returned results make no sense (West greater
> than East), and subtract 360 degrees from the western coordinate,
> where 360 degrees = 2 ^ (8+zoom) pixels.
>
> var c1 = this.map_.fromLatLngToDivPixel(this.bounds_.getSouthWest());
> var c2 = this.map_.fromLatLngToDivPixel(this.bounds_.getNorthEast());
>
> if (c1.x > c2.x) {
> c1.x -= Math.pow(2,8+this.map_.getZoom());
> }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---