This is a migrated thread and some comments may be shown as answers.

Draw line between 2 locations on google map

2 Answers 963 Views
Off-Topic
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 28 Nov 2013, 11:39 AM
Hi!

I'd like to draw a straight line from current location to fix coordinates on google map. Getting current location and setting coordinates is not a problem at all.
Any ideas how to connect this 2 points?
Or maybe there's a "Route" function for this?

Thanks
Martin

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Nov 2013, 04:54 PM
Hello,

You could use Polylines to draw line on your map between several markers. Check out google maps' API for instructions and this snippet.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Accepted
Martin
Top achievements
Rank 1
answered on 28 Nov 2013, 06:38 PM
Thanks, worked great! Next I'm going to play with an arrow(compass) that always shows to destination.

regards
Martin
Tags
Off-Topic
Asked by
Martin
Top achievements
Rank 1
Answers by
Steve
Telerik team
Martin
Top achievements
Rank 1
Share this question
or