> If you do it outside of that function gpolylines.length-1 will always > point to the last polyline in your xml (or be zero). > > gpolylines[0] will always be the first polyline in your xml. > gpolylines[1] will always be the second polyline, etc. > > If you don't want to count on the order of the xml, you can change the > gpolylines array (or create new array) to be an associative array > indexed with an "id" that you define in your xml. > > -- Larry
thanks, Larry. but does this not mean that I can just link to the polylines by pre- defining their numbers like this: <a href='javascript:GEvent.trigger(gpolylines[2],"click");'>Blue line</ a> (obviously not, because it doesn't work - I get an "a is undefined" error when I click on the link) I'm obviously missing something fundamental? thanks for your help. Lucas -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
