Hello,

I´ve been messing around with this for a long time, but I just can´t
figure it out. I´m trying to edit a polyline much as the current maps
installation does: Drag the line -> add point -> calculate new route.
I'm not that advanced with the api yet so it left alot of question
unsolved.

This is the method i'm current going for:
- Save all Latlng point in an array, use these to create the polyline.
Works fine

- Upon mouse down (MapMouseEvent) on the polyline, insert a new point
in the array at the appropiate index
How do I determine the index of the new point in the array? Looping
trough the vertices and look for a match with the mouseevent result
seems the best way, but I don't know how to get the clicked vertex from
the event.

- Regenerate the polyline on a mousemove event
this seems very heavy performance wise tho..

Wish google had implemented this in the api, would have saved so much
work :(
Any help would greatly be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en.

Reply via email to