List of Lat and Long

Nov 29, 2009 at 1:29 PM

Hallo there,


I have a list of several Lat and Long. I want them on the map and connect them by a line.                                                

And when all the points are drawn i want to fill the shap that is created with the point.s

It is NOT a route, so the connectionline, doesn't have to follow roads.

The points are available in a text file.

How can i achieve this in VB.NET?



Thanx in advance,




Nov 29, 2009 at 3:41 PM

custom marker?

Nov 30, 2009 at 8:48 AM


If you say so... But i dont want real markers (bigger dan line thickness), just dots, so when connected by line and filled with color it just has to look like a line. But first i want to know what best way is for filling point list and connect them by line. Any VB.NET samples?



Nov 30, 2009 at 8:52 AM

nop, buts thats gdi+ stuff

Nov 30, 2009 at 12:08 PM


GDI+ is least problem. I think i know the right steps, but need your confirm (or not :-) )

1 Open file with lat/lng coordinates

2 Convert them with FromLatLngToLocal

3 Add them to Point List

4 Draw polygon

5 Fill polygon

I need your help for step 2.






Nov 30, 2009 at 12:54 PM

well just use that function ;}

Nov 30, 2009 at 3:21 PM


I managed to:

1) read the file with coordinates

2) translate them in local (screen) coordinates

3) Add each point to pointlist

4) Draw polygon from pointlist.

But.... How to add polygon to overlay so it wil be still visible after moving map?

Now the polygon is just visible for fraction of second





Nov 30, 2009 at 4:30 PM

just create custom marker, look at documentation tab for windows forms

Nov 30, 2009 at 8:22 PM

If you are using WPF you can use the "Circle"-approach as demonstrated in the Demo. I use rectangles to create 10x10 km quadrants, but with WPF you can build almost anything you want.