> 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.
I actually calculate from the center as you suggested earlier. I use the center as the reference point and then calculate the offset for the top/left tile as above; offsets for all other tiles currently displayed are calculated based on that offset by adding tileside (256 in my case) multiplied by difference in tile x/y coordinates. I also switched to using my own calculations for the Mercator projection and it seems to be almost 5 times faster than gmap's fromLatLngToPixel(). I didn't expect such a significant difference (on 1000+ points). Although there may be other factors in play that I haven't excluded (I haven't tried the simplest possible example just to benchmark it). Paul. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
