On Aug 21, 5:02 pm, Dronnikkl <[email protected]> wrote: > * how to determine where to insert it in array?
I don't think it is particularly easy. It probably would be simplest to add each segment separately to the map with its own click listener. When a click happens on that polyline, you remove it from the map and add two new ones, using the two original endpoints and the clicked location. The only other way is to determine which segment of the polyline it is on by calculation. The use the MVC array insertAt to insert it: http://code.google.com/apis/maps/documentation/javascript/reference.html#MVCArray -- Larry -- 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.
