Great! Thanks. May be i was reading between the words in the documentation when they say it returns the first path :)
Also, from your suggestion, it looks like a polygon should render as a polyline if the first and last points don't match. Didn't realize that. Thanks for the help. Thank You, Vish On Feb 1, 5:08 pm, "[email protected]" <[email protected]> wrote: > On Feb 1, 1:23 pm, Vish Uma <[email protected]> wrote: > > > Hi all, > > > Can i add multiple paths to a v3 polyline? The methods supported on > > Polylines are only 'getPath' and 'setPath' and they don't seem to take an > > index. But the documentation reads that the methods 'get the first path' > > suggesting that there can be multiple paths. But there doesn't seem to be a > > way to get or set them in the Polyline. I would appreciate any > > help/suggestions regarding this issue. > > getPaths is applicable to > polygons.http://code.google.com/apis/maps/documentation/javascript/reference.h... > which has the same description (and where it makes more sense) for > getPath. > > http://code.google.com/apis/maps/documentation/javascript/reference.h... > > (my take is no, you can't add multiple paths to a polyline. Use a > polygon for that) > > -- Larry > > > > > > > > > > > Thank You, > > Vish -- 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.
