OK - I have added the extra code.
If first point == last point, it is considered to be a polygon.
If first point != last point, it is considered to be a polyline.
For a simple example, look at:
www.polyarc.us/pack
The Census Department's cartographic boundary files are pretty old. I
am looking for something else which closely matches the coastline,
perhaps the 2008 TIGER files.
It is unfortunate the API "fromEncoded" functions will not accept an
array of pixel offsets. Four redundant steps could be eliminated.
Packer must convert from pixels to Lat/Lon coordinates.
Packer must encode the Lat/Lon coordinates.
The API must decode the encoded Lat/Lon coordinates.
The API must convert from Lat/Lon coordinates to pixels.
I have submitted suggestion 1007 but I doubt much will happen
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1007
I think the PolyGonzo guys have the right idea. The API GPoly
functions are too bloated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---