Wasn't it asianCoolz who wrote:
>
>interesting point. anyway to force request coming from just one
>server .. or else we will not able to use any cache.
Although the load is spread between the servers the same tile always
gets fetched from the same server. The API uses this code to choose the
server number:
d=(b.x+2*b.y)%a.length
So for the same value of b.x and b.y (i.e. the same tile) the value of d
will be the same. [a.length is always 4]
Also the length of the "Galileo" will be the same for the same tile
number. It's calculated with
e=(b.x*3+b.y)%8
So the G_NORMAL_MAP tiles do get cached.
The G_SATELLITE_MAP tiles also have a cookie parameter which does
change, so they don't get cached. The browser considers these copies of
the same tile to be different URLs, because the &cookie parameter is
different.
http://khm2.google.com/kh?v=34&hl=en&cookie=fzwq1BVgmLjhAqnzwdahlbksh-Wda
tfFsO9ZiQ&x=70&y=92&z=8&s=Galile
http://khm2.google.com/kh?v=34&hl=en&cookie=fzwq2tcYp-zd2dF54-fBeWF49T5mE
iavDRTBTA&x=70&y=92&z=8&s=Galile
--
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
-~----------~----~----~----~------~----~------~--~---