WebMercatorTilingScheme

A tiling scheme for geometry referenced to a WebMercatorProjection, EPSG:3857. This is the tiling scheme used by Google Maps, Microsoft Bing Maps, and most of ESRI ArcGIS Online.

See also

Constructors

Link copied to clipboard
constructor(options: WebMercatorTilingScheme.ConstructorOptions? = definedExternally)

Types

Link copied to clipboard
sealed interface ConstructorOptions

Properties

Link copied to clipboard
open override var ellipsoid: Ellipsoid

Gets the ellipsoid that is tiled by this tiling scheme.

Link copied to clipboard
open override var projection: MapProjection

Gets the map projection used by this tiling scheme.

Link copied to clipboard
open override var rectangle: Rectangle

Gets the rectangle, in radians, covered by this tiling scheme.

Functions

Link copied to clipboard
open override fun getNumberOfXTilesAtLevel(level: Int): Int

Gets the total number of tiles in the X direction at a specified level-of-detail.

Link copied to clipboard
open override fun getNumberOfYTilesAtLevel(level: Int): Int

Gets the total number of tiles in the Y direction at a specified level-of-detail.

Link copied to clipboard
open override fun positionToTileXY(position: Cartographic, level: Int, result: Cartesian2?): Cartesian2

Calculates the tile x, y coordinates of the tile containing a given cartographic position.

Link copied to clipboard
open override fun rectangleToNativeRectangle(rectangle: Rectangle, result: Rectangle?): Rectangle

Transforms a rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.

Link copied to clipboard
open override fun tileXYToNativeRectangle(x: Double, y: Double, level: Int, result: Any?): Rectangle

Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates of the tiling scheme.

Link copied to clipboard
open override fun tileXYToRectangle(x: Double, y: Double, level: Int, result: Any?): Rectangle

Converts tile x, y coordinates and level to a cartographic rectangle in radians.