On Sep 13, 4:48 am, Paul Kulchenko <paulclin...@gmail.com> wrote:
> To answer my own question. The solution was easy: my offset
> calculations were incorrect (probably misinterpreted bratliff's
> explanations); should be this:
>
>       var x = div.x - abs.x;
>       var y = div.y - abs.y;
>
>       var offx = (X0 << 8) + x;
>       var offy = (Y0 << 8) + y;
>
> It all works now and I don't see any issue with the International Date
> line. Thanks all!
>
> Paul.

Our calculations may differ slightly depending on which reference
point is being used.  I calculate from the center.  I believe Google
calculates from the top left corner.  It looks like you are using the
top left corner also.  The "in view" tiles ought to be the same but
the "out of view" tiles may be different.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to