i working in java,jsp. want know how draw google map display routes between different locations.
for example:
if there 1,2,3,4,5 addresess pins on map, click on 2nd 1 , click on 5th 1 find out route go 2nd 5th , onwards if click on 3rd find route 5th 3rd
route (2 --> 5 --> 3)
please me out this. thanks
you can either store locations in waypoints, or, can have multiple routes. note if use waypoints approach, sure set optimizewaypoints: false, won't mess click order.
i have demo waypoints approach http://jsfiddle.net/6grw5dre/
hope helps.
Comments
Post a Comment