skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MapTileSystemHelper

Inheritance
System.Object
MapTileSystemHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 true wraparound is allowed.

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 true wraparound is allowed.

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.

Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.