On Apr 6, 1:18 am, The Net Duck <[email protected]> wrote:
> Wow thanks Bratillf, did you come up with that? That's really amazing.
> You mentioned pixels, in this equation are the X and Y's still just
> lat and lng coords?

I started with a formula for the area of a triangle:

    http://www.softsurfer.com/Archive/algorithm_0101/algorithm_0101.htm

I tweaked it to insure the rounding errors were consistent in each
direction to insure a tight fit between polys sharing a common
boundary.  The X & Y values are pixels which are integers rather than
Lat/Lon coordinaters which are floating point numbers.  At the
equator, a degree of latitude is equivalent to a degree of longitude.
Everywhere else, the two are not equivalent.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to