How can I find Latitude and Longitude of pp in code?
Thank you.
3 Answers, 1 is accepted
0
Andrey
Telerik team
answered on 03 Feb 2010, 09:42 AM
Hello AngeIa,
You can get the attached Location property using the MapLayer class. The sample code is below.
avtostops = KmlReader.Read(streamInfo.Stream);
......
foreach(FrameworkElement point inavtostops)
{
MapPinPoint pp = point asMapPinPoint;
Location location = MapLayer.GetLocation(pp);
..........
}
The location object will contain Latitude and Longitude properties you need.
Regards,
Andrey Murzov
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.