On Jul 23, 12:23 am, Nianwei Liu <nian...@gmail.com> wrote: > @William: > That's a good point. Add/remove points in the middle of the array > will cause some problem, maybe the property needs a rebind or > something at the length change event. I noticed there is an issue > submitted with an internal tracking id for enable poly edit, so I'll > wait a little bit before trying to build one. I did noticed some other > folks have done some work to mimic the v2 editor, but the code does > not seem to be rewritten with reuse abstraction in mind. > I had a go at it, by making a linked list interface to the MVCArray. This class extends your MVCArrayBinder. I agree that the aim of this exercise is to make something reusable. Here it is used to implement the polyline editor. Clicking on the map adds a new vertex at the end of the polyline. Vertices are moved by dragging the markers. Clicking a marker inserts a vertex at the midpoint of the following segment. Right clicking a marker deletes a vertex. Clicking the final marker toggles the drawing mode, so a new vertex gets added before the start of the polyline.
http://www.william-map.com/20100723/1/polyline.htm ... -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.