there used to be an example online, but the link is dead. i would imagine that you would just use some marker listeners for dragging, and then restrict the movement to latlngs that are actually on the line-
On Aug 29, 3:34 pm, otternase <[EMAIL PROTECTED]> wrote: > Hello > > I'd like to use a marker like a slider, that is as follows: > > - given is a polyline and a marker > - the user should be able to take and drag the marker along the > polyline while the marker sticks to the line > - when the user releases the mouse button the marker should snap to > the nearest vertex and the coordinates of this vertex and the index of > the vertex should be returned > > Any suggestions how to implement this using Google Maps API / > Javascript? > > Thanks a lot > Markus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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 -~----------~----~----~----~------~----~------~--~---
