Class MapMathHelper
Provides methods which perform calculations on geographical coordinates and distances.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public static class MapMathHelper : Object
Methods
GetGeoSizeAtZoomLevel(MapProviderBase, Int32, Location, Size)
Gets geographical size from the pixel size at the given zoom level for the given map provider.
Declaration
public static Size GetGeoSizeAtZoomLevel(MapProviderBase provider, int zoomLevel, Location basePoint, Size pixelSize)
Parameters
MapProviderBase
provider
Map provider. |
System.Int32
zoomLevel
Zoom level. |
Location
basePoint
Base point. |
System.Windows.Size
pixelSize
The size in pixels. |
Returns
System.Windows.Size
Size in degree. |
LogicalToPixel(LogicalToScreenParameters, Point)
Converts a logic point to a Pixel Point on the current screen at a particular zoom level.
Declaration
public static Point LogicalToPixel(LogicalToScreenParameters screenParameters, Point logicalPoint)
Parameters
LogicalToScreenParameters
screenParameters
Conversion parameters. |
System.Windows.Point
logicalPoint
The logical point. |
Returns
System.Windows.Point
Pixel Point. |
LogicalToPixel(LogicalToScreenParameters, Point, Point)
Converts a logic point to a Pixel Point on the current screen at a particular zoom level and moves it relative to base point.
Declaration
public static Point LogicalToPixel(LogicalToScreenParameters screenParameters, Point logicalPoint, Point basePoint)
Parameters
LogicalToScreenParameters
screenParameters
Conversion parameters. |
System.Windows.Point
logicalPoint
The logical point. |
System.Windows.Point
basePoint
The base point. |
Returns
System.Windows.Point
Pixel Point. |
PixelToLogicalSize(MapProviderBase, Double, Int32)
Convert pixel size to the logical size at the given zoom level.
Declaration
public static double PixelToLogicalSize(MapProviderBase provider, double pixelSize, int zoomLevel)
Parameters
MapProviderBase
provider
Map provider. |
System.Double
pixelSize
Pixel size. |
System.Int32
zoomLevel
Zoom level. |
Returns
System.Double
Logical size. |