Route

Jul 9, 2010 at 2:57 PM

Hi

How can I draw line betweeb 10 points. I like to show the rouds that My car passed. For example I have 10 points from the places that my car passed.

Regards

Coordinator
Jul 9, 2010 at 3:48 PM

you can simply create route from these points:

GMapOverlay routes = new GMapOverlay(MainMap, "routes");
MainMap.Overlays.Add(routes);

List<PointLatLng> points = new List<PointLatLng>();
{
   points.Add(new PointLatLng(54.6961334816182, 25.2585095977783));
   points.Add(new PointLatLng(54.6861334816182, 25.2285095977783));
   points.Add(new PointLatLng(54.6461334816182, 25.3985095977783));
   points.Add(new PointLatLng(54.6461334816182, 25.4985095977783));
   points.Add(new PointLatLng(54.6361334816182, 25.2285095977783));
}
            
GMapRoute r = new GMapRoute(points, "My car route");
routes.Routes.Add(r);