A line between to positions

Feb 2, 2009 at 10:07 PM
Hi

will it be possible for you to make a function to make lines between positions, to connect many markers.
.

Best Regards
Finn
Feb 3, 2009 at 5:34 AM
ok
Feb 15, 2009 at 10:09 PM
First of all, this control is sweet. Awesome job. 
Second, I am really looking forward to seeing this line function.

Thanks for this.
May 11, 2009 at 4:47 PM

Hello!

Any news about this discussion?

 

Thanks a lot!

May 11, 2009 at 4:50 PM

create a route object, then add   PointLatLong   objects to the (i think) points  collection

thats how i do it

 

May 11, 2009 at 4:54 PM

Hello paulmoliver, thanks for the fast reply!

If I do what you say I get the "best" (shortest\faster) route, but I want to draw a direct line between my 2 points.

May 11, 2009 at 5:10 PM

no, dont call any of the routing functions, just use the route object, and add the 2 points in the form of a PointLongLat   object , it is real simple

 

 

May 11, 2009 at 5:17 PM

 

Create a collections.generic.list of   PointLatLng   points,   then

create a GMapRoute  object  giving this collection and a name.

now simply  add this route object to the Routes collection of the map.

 

May 11, 2009 at 5:20 PM

exactly ;}

May 11, 2009 at 5:37 PM

Perfect.. it works fine!thanks!

Can I change color for the route?

How can I handle route mouse click?

Thanks again for the fast answers!

May 11, 2009 at 5:38 PM

set the Route.Color

 

as for mouse clicks, thats something we were discussing earlier today, no simple solution though yet