MapTileSystemHelper
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public static class MapTileSystemHelper
Inheritance: objectMapTileSystemHelper
Fields
public const double EarthRadius = 6378137
public const double MaxLatitude = 85.05112878
public const double MaxLongitude = 180
public const double MinLatitude = -85.05112878
public const double MinLongitude = -180
Methods
Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
public static PointL LatLongToPixelXY(double latitude, double longitude, int levelOfDetail, bool allowWraparound)
Latitude of the point, in degrees.
longitudedoubleLongitude of the point, in degrees.
levelOfDetailintLevel of detail, from 1 (lowest detail) to 23 (highest detail).
allowWraparoundboolif set to true wraparound is allowed.
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
Determines the map scale at a specified latitude, level of detail, and screen resolution.
public static double MapScale(double latitude, int levelOfDetail, int screenDpi)
Latitude (in degrees) at which to measure the map scale.
levelOfDetailintLevel of detail, from 1 (lowest detail) to 23 (highest detail).
screenDpiintResolution of the screen, in dots per inch.
Returns:The map scale, expressed as the denominator N of the ratio 1 : N.
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
public static PointG PixelXYToLatLong(long pixelX, long pixelY, int levelOfDetail, bool allowWraparound)
X coordinate of the point, in pixels.
pixelYlongY coordinates of the point, in pixels.
levelOfDetailintLevel of detail, from 1 (lowest detail) to 23 (highest detail).
allowWraparoundboolif set to true wraparound is allowed.
PointG.
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
Converts a QuadKey into tile XY coordinates.
public static void QuadKeyToTileXY(string quadKey, out int tileX, out int tileY, out int levelOfDetail)
QuadKey of the tile.
tileXintOutput parameter receiving the tile X coordinate.
tileYintOutput parameter receiving the tile Y coordinate.
levelOfDetailintOutput parameter receiving the level of detail.
Converts tile XY coordinates into a QuadKey at a specified level of detail.