Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

New Post: Draw Route with Multiple Points on the Road

$
0
0
You will need to manually string together your route using the MapProviders call to GetRouteBetweenPoints. Something like this:
MapRoute route = GMapProviders.GoogleMap.GetRouteBetweenPoints(start, waypoint1, false, false, 15);
route.Points.AddRange(GMapProviders.GoogleMap.GetRouteBetweenPoints(waypoint1, waypoint2, false, false, 15).Points);
route.Points.AddRange(GMapProviders.GoogleMap.GetRouteBetweenPoints(waypoint2, waypoint3, false, false, 15).Points);
route.Points.AddRange(GMapProviders.GoogleMap.GetRouteBetweenPoints(waypoint3, waypoint4, false, false, 15).Points);
route.Points.AddRange(GMapProviders.GoogleMap.GetRouteBetweenPoints(waypoint4, waypoint5, false, false, 15).Points);
route.Points.AddRange(GMapProviders.GoogleMap.GetRouteBetweenPoints(waypoint5, end, false, false, 15).Points); 
As for the rest of what you asked, I cannot understand your broken English.

Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>