Class MapTileSystemHelper
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public static class MapTileSystemHelper
Fields
EarthRadius
Declaration
public const double EarthRadius = 6378137
Field Value
System.
|
MaxLatitude
Declaration
public const double MaxLatitude = 85.05112878
Field Value
System.
|
MaxLongitude
Declaration
public const double MaxLongitude = 180
Field Value
System.
|
MinLatitude
Declaration
public const double MinLatitude = -85.05112878
Field Value
System.
|
MinLongitude
Declaration
public const double MinLongitude = -180
Field Value
System.
|
Methods
GroundResolution(Double, Int32)
Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.
Declaration
public static double GroundResolution(double latitude, int levelOfDetail)
Parameters
System. Latitude (in degrees) at which to measure the ground resolution. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
System. The ground resolution, in meters per pixel. |
LatLongToPixelXY(Double, Double, Int32)
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
Declaration
public static PointL LatLongToPixelXY(double latitude, double longitude, int levelOfDetail)
Parameters
System. Latitude of the point, in degrees. |
System. Longitude of the point, in degrees. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
LatLongToPixelXY(Double, Double, Int32, Boolean)
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
Declaration
public static PointL LatLongToPixelXY(double latitude, double longitude, int levelOfDetail, bool allowWraparound)
Parameters
System. Latitude of the point, in degrees. |
System. Longitude of the point, in degrees. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
System. if set to |
Returns
LatLongToPixelXY(PointG, Int32)
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
Declaration
public static PointL LatLongToPixelXY(PointG location, int levelOfDetail)
Parameters
Point Location of the point, in degrees. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
MapScale(Double, Int32, Int32)
Determines the map scale at a specified latitude, level of detail, and screen resolution.
Declaration
public static double MapScale(double latitude, int levelOfDetail, int screenDpi)
Parameters
System. Latitude (in degrees) at which to measure the map scale. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
System. Resolution of the screen, in dots per inch. |
Returns
System. The map scale, expressed as the denominator N of the ratio 1 : N. |
MapSize(Int32)
Determines the map width and height (in pixels) at a specified level of detail.
Declaration
public static long MapSize(int levelOfDetail)
Parameters
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
System. The map width and height in pixels. |
PixelXYToLatLong(Int64, Int64, Int32)
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
Declaration
public static PointG PixelXYToLatLong(long pixelX, long pixelY, int levelOfDetail)
Parameters
System. X coordinate of the point, in pixels. |
System. Y coordinates of the point, in pixels. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
PixelXYToLatLong(Int64, Int64, Int32, Boolean)
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
Declaration
public static PointG PixelXYToLatLong(long pixelX, long pixelY, int levelOfDetail, bool allowWraparound)
Parameters
System. X coordinate of the point, in pixels. |
System. Y coordinates of the point, in pixels. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
System. if set to |
Returns
Point PointG. |
PixelXYToLatLong(PointL, Int32)
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
Declaration
public static PointG PixelXYToLatLong(PointL point, int levelOfDetail)
Parameters
Point X and Y coordinates of the point, in pixels. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
PixelXYToTileXY(Int64, Int64)
Converts pixel XY coordinates into tile XY coordinates of the tile containing the specified pixel.
Declaration
public static Point PixelXYToTileXY(long pixelX, long pixelY)
Parameters
System. Pixel X coordinate. |
System. Pixel Y coordinate. |
Returns
System.
|
QuadKeyToTileXY(String, out Int32, out Int32, out Int32)
Converts a QuadKey into tile XY coordinates.
Declaration
public static void QuadKeyToTileXY(string quadKey, out int tileX, out int tileY, out int levelOfDetail)
Parameters
System. QuadKey of the tile. |
System. Output parameter receiving the tile X coordinate. |
System. Output parameter receiving the tile Y coordinate. |
System. Output parameter receiving the level of detail. |
TileXYToPixelXY(Int32, Int32)
Converts tile XY coordinates into pixel XY coordinates of the upper-left pixel of the specified tile.
Declaration
public static PointL TileXYToPixelXY(int tileX, int tileY)
Parameters
System. Tile X coordinate. |
System. Tile Y coordinate. |
Returns
TileXYToQuadKey(Int32, Int32, Int32)
Converts tile XY coordinates into a QuadKey at a specified level of detail.
Declaration
public static string TileXYToQuadKey(int tileX, int tileY, int levelOfDetail)
Parameters
System. Tile X coordinate. |
System. Tile Y coordinate. |
System. Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
System. A string containing the QuadKey. |