bratliff schrieb:
> On Dec 11, 7:05 pm, "Neil.Young" <[email protected]> wrote:
>
>> Bratliff, your JS style is brillant, but what is that offset=268435456
>> in terms of earth geometry? Just curious.
>> Regards
>>
>
> Thanks but it has also been criticized for the use of local
> functions. Just trying to keep extra junk out of the global
> namespace.
>
>
What is wrong with that? It is critical in terms of memory allocation?
It was very popular in the good old times of Turbo Pascal and Delphi,
just in order to keep the things a bit more clear (to show, that this
and that function is required in this and that context only). BTW: I
learn a lot from your code. I'm not that professional with JS, so
especially your juggling with JSON objects is very exciting :) And not
to forget your polygon hint lately... Very cool. Keep on doing this!
> The offset (256<<20) is half the circumference of the Earth in pixels
> at zoom level 21. It is used to move the origin from the prime
> meridian to the international date line. In the case of a sphere, the
> radius can be factored out. In the case of an ellipsoid, it is
> required.
>
Ah. Thanks a lot. For now I just knew the Google kind of making the
projection (the array of bitmap center coords for a given zoom level
combined with the same math, you know?). Thanks for making that clear.
Regards
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---