List of Lat and Long

Nov 29, 2009 at 12: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,

Heru

 

 

Coordinator
Nov 29, 2009 at 2:41 PM

custom marker?

Nov 30, 2009 at 7:48 AM

Radioman,

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?

Heru

 

Coordinator
Nov 30, 2009 at 7:52 AM

nop, buts thats gdi+ stuff

Nov 30, 2009 at 11:08 AM

Radioman,

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.

 

Gr.

Heru

 

 

Coordinator
Nov 30, 2009 at 11:54 AM

well just use that function ;}

Nov 30, 2009 at 2:21 PM

Radioman,

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

 

Gr.

Hein

 

Coordinator
Nov 30, 2009 at 3:30 PM

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

Nov 30, 2009 at 7: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.