A kind of diagram

chpw
05-31-2006, 05:23 AM
Hi all,

I'd like to draw a kind of diagram showing the
connectivity between places as line thickness.
Have data in form of a table with 5 columns:

Place A Latitude
Place A Longitude
Place B Latitude
Place B Longitude
Connectivity (Number)


For every line in that table I want draw a line
in the map connecting Place A with Place B.
The thickness of the line shall increase with
the value of connectivity.

Some hints?

TIA

Chris Werner

Wilfried
06-01-2006, 07:27 AM
Hi,

Something like this:

Location LocA = MP.ActiveMap.GetLocation(LatA, LonA, Alt);
Pushpin ppA = MP.ActiveMap.AddPushpin(LocA, "");
ppA.Symbol = 1;
MP.ActiveMap.GoToLatLong(LatA, LonA, Alt);

Location LocB = MP.ActiveMap.GetLocation(LatB, LonB, Alt);
Pushpin ppB = MP.ActiveMap.AddPushpin(LocB, "");
ppB.Symbol = 2;

Shape s = MP.ActiveMap.Shapes.AddLine(LocA, LocB);
s.Line.EndArrowhead = true;
s.Line.Weight = 1; // Thickness of the line

chpw
06-01-2006, 07:31 AM
Hi,

thank you very much! This weight property
was what I've searched for!

Kind regards,

Chris Werner

 
Web mp2kmag.com
mapforums.com