On Nov 30, 12:41 pm, jens_o_mat <[email protected]> wrote: > Hey everybody! > > I've got the following problem within my mobile application: > > On my map, I've got lots of polylines for different sections of > streets and on these polylines i added click-listeners to change the > color of the clicked polyline and write some information into a div. > > What i try to do now is locating my position with > navigator.geolocation.getCurrentPosition (with success) , locating the > nearest polyline to that point and fire the event of that polyline. > Does anybody know how to handle that? > > I hope, someone can help me!
This search returned some interesting results: http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=polyline+closest+to+point&qt_g=Search+this+group like this one: http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/35e0ef923dbdc4f2/bc53d60327968cd3?lnk=gst&q=polyline+closest+to+point#bc53d60327968cd3 (the example I posted in that thread is finding the nearest segment of the polyline to the clicked point, if I remember correctly) -- Larry > Thanks in advance! -- 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.
