ClassMapTileSystemHelper
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public static class MapTileSystemHelper
Inheritance: objectMapTileSystemHelper
Fields
Methods
GroundResolution(double, int)
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
latitude
Latitude (in degrees) at which to measure the ground resolution.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
Returns
The ground resolution, in meters per pixel.
LatLongToPixelXY(PointG, int)
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into pixel XY coordinates at a specified level of detail.
LatLongToPixelXY(double, double, int)
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
latitude
Latitude of the point, in degrees.
longitude
Longitude of the point, in degrees.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
Returns
LatLongToPixelXY(double, double, int, bool)
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
latitude
Latitude of the point, in degrees.
longitude
Longitude of the point, in degrees.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
allowWraparound
if set to true wraparound is allowed.
Returns
MapScale(double, int, int)
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
latitude
Latitude (in degrees) at which to measure the map scale.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
screenDpi
Resolution of the screen, in dots per inch.
Returns
The map scale, expressed as the denominator N of the ratio 1 : N.
MapSize(int)
Determines the map width and height (in pixels) at a specified level of detail.
PixelXYToLatLong(PointL, int)
Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).
PixelXYToLatLong(long, long, int)
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
pixelX
X coordinate of the point, in pixels.
pixelY
Y coordinates of the point, in pixels.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
Returns
PixelXYToLatLong(long, long, int, bool)
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
pixelX
X coordinate of the point, in pixels.
pixelY
Y coordinates of the point, in pixels.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
allowWraparound
if set to true wraparound is allowed.
Returns
PointG.
PixelXYToTileXY(long, long)
Converts pixel XY coordinates into tile XY coordinates of the tile containing the specified pixel.
QuadKeyToTileXY(string, out int, out int, out int)
Converts a QuadKey into tile XY coordinates.
Declaration
public static void QuadKeyToTileXY(string quadKey, out int tileX, out int tileY, out int levelOfDetail)
Parameters
quadKey
QuadKey of the tile.
tileX
Output parameter receiving the tile X coordinate.
tileY
Output parameter receiving the tile Y coordinate.
levelOfDetail
Output parameter receiving the level of detail.
TileXYToPixelXY(int, int)
Converts tile XY coordinates into pixel XY coordinates of the upper-left pixel of the specified tile.
TileXYToQuadKey(int, int, int)
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
tileX
Tile X coordinate.
tileY
Tile Y coordinate.
levelOfDetail
Level of detail, from 1 (lowest detail) to 23 (highest detail).
Returns
A string containing the QuadKey.