Class
MapTileSystemHelper

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

cs-api-definition
public static class MapTileSystemHelper

Inheritance: objectMapTileSystemHelper

Fields

EarthRadius

Declaration

cs-api-definition
public const double EarthRadius = 6378137

Field Value

double

MaxLatitude

Declaration

cs-api-definition
public const double MaxLatitude = 85.05112878

Field Value

double

MaxLongitude

Declaration

cs-api-definition
public const double MaxLongitude = 180

Field Value

double

MinLatitude

Declaration

cs-api-definition
public const double MinLatitude = -85.05112878

Field Value

double

MinLongitude

Declaration

cs-api-definition
public const double MinLongitude = -180

Field Value

double

Methods

GroundResolution(double, int)

Determines the ground resolution (in meters per pixel) at a specified latitude and level of detail.

Declaration

cs-api-definition
public static double GroundResolution(double latitude, int levelOfDetail)

Parameters

latitude

double

Latitude (in degrees) at which to measure the ground resolution.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

double

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.

Declaration

cs-api-definition
public static PointL LatLongToPixelXY(PointG location, int levelOfDetail)

Parameters

location

PointG

Location of the point, in degrees.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

PointL

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

cs-api-definition
public static PointL LatLongToPixelXY(double latitude, double longitude, int levelOfDetail)

Parameters

latitude

double

Latitude of the point, in degrees.

longitude

double

Longitude of the point, in degrees.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

PointL

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

cs-api-definition
public static PointL LatLongToPixelXY(double latitude, double longitude, int levelOfDetail, bool allowWraparound)

Parameters

latitude

double

Latitude of the point, in degrees.

longitude

double

Longitude of the point, in degrees.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

allowWraparound

bool

if set to true wraparound is allowed.

Returns

PointL

MapScale(double, int, int)

Determines the map scale at a specified latitude, level of detail, and screen resolution.

Declaration

cs-api-definition
public static double MapScale(double latitude, int levelOfDetail, int screenDpi)

Parameters

latitude

double

Latitude (in degrees) at which to measure the map scale.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

screenDpi

int

Resolution of the screen, in dots per inch.

Returns

double

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.

Declaration

cs-api-definition
public static long MapSize(int levelOfDetail)

Parameters

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

long

The map width and height in pixels.

PixelXYToLatLong(PointL, int)

Converts a pixel from pixel XY coordinates at a specified level of detail into latitude/longitude WGS-84 coordinates (in degrees).

Declaration

cs-api-definition
public static PointG PixelXYToLatLong(PointL point, int levelOfDetail)

Parameters

point

PointL

X and Y coordinates of the point, in pixels.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

PointG

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

cs-api-definition
public static PointG PixelXYToLatLong(long pixelX, long pixelY, int levelOfDetail)

Parameters

pixelX

long

X coordinate of the point, in pixels.

pixelY

long

Y coordinates of the point, in pixels.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

PointG

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

cs-api-definition
public static PointG PixelXYToLatLong(long pixelX, long pixelY, int levelOfDetail, bool allowWraparound)

Parameters

pixelX

long

X coordinate of the point, in pixels.

pixelY

long

Y coordinates of the point, in pixels.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

allowWraparound

bool

if set to true wraparound is allowed.

Returns

PointG

PointG.

PixelXYToTileXY(long, long)

Converts pixel XY coordinates into tile XY coordinates of the tile containing the specified pixel.

Declaration

cs-api-definition
public static Point PixelXYToTileXY(long pixelX, long pixelY)

Parameters

pixelX

long

Pixel X coordinate.

pixelY

long

Pixel Y coordinate.

Returns

Point

QuadKeyToTileXY(string, out int, out int, out int)

Converts a QuadKey into tile XY coordinates.

Declaration

cs-api-definition
public static void QuadKeyToTileXY(string quadKey, out int tileX, out int tileY, out int levelOfDetail)

Parameters

quadKey

string

QuadKey of the tile.

tileX

int

Output parameter receiving the tile X coordinate.

tileY

int

Output parameter receiving the tile Y coordinate.

levelOfDetail

int

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.

Declaration

cs-api-definition
public static PointL TileXYToPixelXY(int tileX, int tileY)

Parameters

tileX

int

Tile X coordinate.

tileY

int

Tile Y coordinate.

Returns

PointL

TileXYToQuadKey(int, int, int)

Converts tile XY coordinates into a QuadKey at a specified level of detail.

Declaration

cs-api-definition
public static string TileXYToQuadKey(int tileX, int tileY, int levelOfDetail)

Parameters

tileX

int

Tile X coordinate.

tileY

int

Tile Y coordinate.

levelOfDetail

int

Level of detail, from 1 (lowest detail) to 23 (highest detail).

Returns

string

A string containing the QuadKey.