GeographicToLogical gives us value from 0 to 1. I am using this method to project the points using Mercator projection but I want the result in meters. How can we convert the 0-1 value to meters?
1 Answer, 1 is accepted
0
Andrey
Telerik team
answered on 05 Oct 2011, 02:24 PM
Hello Hasan Khan,
Unfortunately the map projection does not support converting logical coordinates to meters.
If you want calculating distances between two geographical points on the map, then I would recommend that you use the LocationRect structure. It has the Width and Height properties which are calculated according to the DistanceUnit property of the MapControl (kilometers or miles).
The sample code is below.
LocationRect rect = newLocationRect(location1, location2);
rect.MapControl = this.RadMap1;
// rect.Width is x-axis distance between points
// rect.Height is y-axis distance between points
Regards,
Andrey Murzov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>