On Oct 29, 9:42 pm, Rick <[email protected]> wrote:
> Dear all,
> In this example,http://econym.org.uk/gmap/example_polyhole.htm
>
> Williams uses:  points: "c}ikgtoopn}kd{gvcffib...@p`txb`eebxbtqg", to
> construct the points.
>
> Anybody knows how to convert a list of lat, longs to this kind of
> format?

It's called encoding. Google have some docs about it but Mark
McClure's pages and utilities are better.
http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/

Each line (that is, the outside line and the inside line) is provided
as an element in an array passed as the first argument to
GPolygon.fromEncoded(). Mike's example lays it out clearly.

> Or does anybody have an example to display a polygon with a hole
> directly from the coordinates of the outside and inside polygon?

Multi-geometry polygons are only supported via encoding.

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