Add a click event for your polyline and that will trigger when the user clicks on the polyline.
The click event returns a point (lat,lng). Use this point to create a new marker there. This would be the simplest method of which to do this. If you are wanting to actually add the point to the MVC array of the polyline you will need to determine where to insert it into the Array. On Fri, Aug 20, 2010 at 8:04 AM, Dronnikkl <[email protected]> wrote: > How can I add point on polyline beetwen two existing points on click > polyline event? > Thank you! > > -- > 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]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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.
