View Single Post

  #8 (permalink)  
Old 12-12-2005
trinity trinity is offline
Junior Member
White Belt
 
Join Date: Dec 2005
Posts: 3
You were right, I did misunderstand GetLocation, this is what I am using now. Thank you everybody!

MapPoint.Location mapLoc;
double dblLon;
double dblLat;

foreach (DataRow dataRow in myDataSet.Tables["myTable"].Rows)
{
dblLat = Convert.ToDouble(dataRow["Latitude"]);
dblLon = Convert.ToDouble(dataRow["Longitude"]);

mapLoc = myMap.GetLocation(dblLat, dblLon, 100);
myMap.AddPushpin(mapLoc, "PP");
}
Reply With Quote