I found an error.  The main loop computes the squared area of each
rectangle.  It should compute the squared area of each triangle.  I
have divided the squared area result by 4 to compensate.

Also, I have tweaked the zoom level algorithm.  The API controls zoom
speed.  I will bet if you run a histogram on the characters in the
zoom level string, you will find a significantly different number of
points at each zoom level between the two algorithms.  Clearly, more
points at a given zoom level will result in longer zoom times.  I am
using the first level at which a point deviates from a straight line
by one pixel.  Changing the tolerance will change the zoom string
which will impact zoom speed.

Finally, I may be nit-picking but the area computation depends on both
the x & y components.  If the x & y components to not share a common
scale, the area comnputation will be biased.  A degree of Longitude
difference should have less influence than a degree of Latitude
difference.  At the equator the error is zero.  At each pole the error
is infinite.

The changes can be found in:

    www.polyarc.us/packer.js

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to