It's a bit difficult to hit the polyline with that fat hand cursor. You should make the polyline a bit thicker and/or maybe change the cursor.
Or maybe there are other and easier ways to achieve what you want. You can try this example http://maps.forum.nu/gm_mouse_dist_to_line.html And there is also a lib that lets you calculate the closest point from the mouse cursor to the polyline http://gmaps-utility-library-dev.googlecode.com/svn/tags/snaptoroute/ And, as a third example, have a look at the function getProximity() in this example http://www.marsrutai.info/directions On Sep 14, 11:29 am, Nihar <[email protected]> wrote: > Hi, > > I am trying to create a polyline and make each point constituting this > line be clickable with dynamic data? > > if you look at the example below, when the polyline is clicked it > displays the latlng at the point of click. > > http://www.hostsfx.net/test/map.html > > similarly, is it possible to bind each point to a click event handler? > > N.B. The example uses hard coded points in the array, but I will > generate this array dynamically for actual purpose. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
