No definition for GetRoute(...)

Topics: General
Jan 29, 2013 at 11:41 PM
Edited Jan 30, 2013 at 12:30 AM

Hi Radioman,

 

thanks for this real great work.

Just one problem. I am trying to display a route on a GMap and used the current version of Gmap.net.

current

1.6 - Power

date

Mon Oct 17, 2011 at 9:00 AM

status

Stable

 

But I can not find a definition for the
GMapProviders.GoogleMap.GetRoute(…) method to create the route.

 

GetRouteBetweenPoints is working fine, but showing a straight route (air line) is not what I intended.

MapRoute route = GMapProviders.GoogleMap.GetRouteBetweenPoints(home, target, false, false, (int)gMapControl1.Zoom);

GMapRoute r = new GMapRoute(route.Points, "My Route");

GMapOverlay overlayRoute = new GMapOverlay(gMapControl1, "overlayRoute");

overlayRoute.Routes.Add(r);

gMapControl1.Overlays.Add(overlayRoute);

 

Thanks in advance.

Steffen

Coordinator
Jan 30, 2013 at 2:03 PM

try latest version