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.Double
|
MaxLatitude
Declaration
public const double MaxLatitude = 85.05112878
Field Value
System.Double
|
MaxLongitude
Declaration
public const double MaxLongitude = 180
Field Value
System.Double
|
MinLatitude
Declaration
public const double MinLatitude = -85.05112878
Field Value
System.Double
|
MinLongitude
Declaration
public const double MinLongitude = -180
Field Value
System.Double
|
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.Double
latitude
Latitude (in degrees) at which to measure the ground resolution. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
System.Double
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.Double
latitude
Latitude of the point, in degrees. |
System.Double
longitude
Longitude of the point, in degrees. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
PointL
|
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.Double
latitude
Latitude of the point, in degrees. |
System.Double
longitude
Longitude of the point, in degrees. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
System.Boolean
allowWraparound
if set to |
Returns
PointL
|
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
PointG
location
Location of the point, in degrees. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
PointL
|
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.Double
latitude
Latitude (in degrees) at which to measure the map scale. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
System.Int32
screenDpi
Resolution of the screen, in dots per inch. |
Returns
System.Double
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.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
System.Int64
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.Int64
pixelX
X coordinate of the point, in pixels. |
System.Int64
pixelY
Y coordinates of the point, in pixels. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
PointG
|
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.Int64
pixelX
X coordinate of the point, in pixels. |
System.Int64
pixelY
Y coordinates of the point, in pixels. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
System.Boolean
allowWraparound
if set to |
Returns
PointG
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
PointL
point
X and Y coordinates of the point, in pixels. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
PointG
|
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.Int64
pixelX
Pixel X coordinate. |
System.Int64
pixelY
Pixel Y coordinate. |
Returns
System.Drawing.Point
|
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.String
quadKey
QuadKey of the tile. |
System.Int32
tileX
Output parameter receiving the tile X coordinate. |
System.Int32
tileY
Output parameter receiving the tile Y coordinate. |
System.Int32
levelOfDetail
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.Int32
tileX
Tile X coordinate. |
System.Int32
tileY
Tile Y coordinate. |
Returns
PointL
|
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.Int32
tileX
Tile X coordinate. |
System.Int32
tileY
Tile Y coordinate. |
System.Int32
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail). |
Returns
System.String
A string containing the QuadKey. |