The best implementation so far. I am going to try to combine this with
binding this weekend to see if the movement of the 2nd Polyline can
trigger movement of the first somehow.

On Aug 3, 3:11 am, Koen <[email protected]> wrote:
> Just like William Choy I was able to emulate enableEditing in v3.
> Once you know how to update the path of the polyline, it isn't
> difficult to add the vertices in the middle of the line.
>
> To see the code I used, take a look 
> athttp://snipplr.com/view/38270/google-maps-api-v3--enableediting-polyl...
> There you can also find a link to a working example.
>
> On Jun 23, 11:57 pm, William Choy <[email protected]> wrote:
>
>
>
> > I was able create my own enableEditing Polygon using v3, by starting
> > with the "Example: Polyline Complex" demo.
> > It was easy because of the MVCObject binding feature for the
> > polyline's path property.  So once you update the path the polyline
> > updates at the sametime.
>
> > Can't give away the code... because it cost me a week to get it to
> > work.
>
> > Just make the marker draggable and update the CORRECT vertex in the
> > polyline's path.  Add an eventHandler for a map click to extend the
> > line.   And context menus for each marker to add/delete vertices in
> > the middle of the line..
>
> > PS: I hated the v2 version with the draggable handle in the middle to
> > line.  It cluttered up the display.
>
> > On Jun 10, 5:14 am, Nianwei Liu <[email protected]> wrote:
>
> > > There is a sample under gmaps-samples-v3.googlecode
> > > com under poly. You can modify it to match v2 behavor.
>
> > > On May 24, 10:20 pm, rmurta <[email protected]> wrote:
>
> > > > On API V2 I am able to edit polylines just calling enableEditing is
> > > > there anything close to this on V3 ? same for the enableDrawing.
>
> > > > Thanks
>
> > > > --
> > > > 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 
> > > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.-Hidequoted
> > > >  text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to