Hi Marcelo, Contrary to you I hope they do add this feature, and Google has no need to bloat the code as they have already started using libraries that can be loaded on request, so if you don't need the code, you don't load it. MymsMan question is non trivial and has it's applications in some scenarios, You can not really use the getdirection solution if you are implementing a solution that follow the GPS coordinate for an extended amount of time because doing so would lead to overuse of the getdirection quota of google. So the solution would be somehow to detect the nearest road once, somehow find the two extremity of the nearest straight length of that road and stick to it until an other road get nearer and do again a getdirection. First I don't even know if this is possible, and second, talk about bloated code in the web page. Would you have a better solution to this problem ? Cheers -R
On Dec 22, 7:28 pm, Marcelo <marcelo...@hotmail.com> wrote: > On Dec 22, 7:46 am, MymsMan <bobbux...@gmail.com> wrote: > > > Are there any plans to add this functionality to the API drawing manager > > for polylines? > > Google never announce their plans in advance, but I hope that the > answer is "No". > Snap to road is quite simple to implement by yourself and there's no > need to bloat the API code with a feature that only 1/1000 will use. > All you need to do is to get directions between that last two points > added and the routing engine will automatically return a point that is > on the nearest road, which you can then use to modify the position of > the marker and/or polyline. > > -- > Marcelo -http://maps.forum.nu > -- > > > > > > > > > > > It would also be a useful option for polygons which are bounded by roads. > > > Ideally it would also be nice to be able to Snap to footpaths, rivers, > > railroads, boundaries etc. -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.