Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Automatically generated - do not modify!
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package cesium
/**
* 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 Online Documentation
*/
@JsName("\$cesium__WebMercatorTilingScheme")
external class WebMercatorTilingScheme(options: ConstructorOptions? = definedExternally) : TilingScheme {
/**
* @property [ellipsoid] The ellipsoid whose surface is being tiled. Defaults to
* the WGS84 ellipsoid.
* Default value - [Ellipsoid.WGS84]
* @property [numberOfLevelZeroTilesX] The number of tiles in the X direction at level zero of
* the tile tree.
* Default value - `1`
* @property [numberOfLevelZeroTilesY] The number of tiles in the Y direction at level zero of
* the tile tree.
* Default value - `1`
* @property [rectangleSouthwestInMeters] The southwest corner of the rectangle covered by the
* tiling scheme, in meters. If this parameter or rectangleNortheastInMeters is not specified, the entire
* globe is covered in the longitude direction and an equal distance is covered in the latitude
* direction, resulting in a square projection.
* @property [rectangleNortheastInMeters] The northeast corner of the rectangle covered by the
* tiling scheme, in meters. If this parameter or rectangleSouthwestInMeters is not specified, the entire
* globe is covered in the longitude direction and an equal distance is covered in the latitude
* direction, resulting in a square projection.
*/
interface ConstructorOptions {
var ellipsoid: Ellipsoid?
var numberOfLevelZeroTilesX: Int?
var numberOfLevelZeroTilesY: Int?
var rectangleSouthwestInMeters: Cartesian2?
var rectangleNortheastInMeters: Cartesian2?
}
/**
* Gets the ellipsoid that is tiled by this tiling scheme.
* @see Online Documentation
*/
override var ellipsoid: Ellipsoid
/**
* Gets the rectangle, in radians, covered by this tiling scheme.
* @see Online Documentation
*/
override var rectangle: Rectangle
/**
* Gets the map projection used by this tiling scheme.
* @see Online Documentation
*/
override var projection: MapProjection
/**
* Gets the total number of tiles in the X direction at a specified level-of-detail.
* @param [level] The level-of-detail.
* @return The number of tiles in the X direction at the given level.
* @see Online Documentation
*/
override fun getNumberOfXTilesAtLevel(level: Int): Int
/**
* Gets the total number of tiles in the Y direction at a specified level-of-detail.
* @param [level] The level-of-detail.
* @return The number of tiles in the Y direction at the given level.
* @see Online Documentation
*/
override fun getNumberOfYTilesAtLevel(level: Int): Int
/**
* Transforms a rectangle specified in geodetic radians to the native coordinate system
* of this tiling scheme.
* @param [rectangle] The rectangle to transform.
* @param [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @return The specified 'result', or a new object containing the native rectangle if 'result'
* is undefined.
* @see Online Documentation
*/
override fun rectangleToNativeRectangle(
rectangle: Rectangle,
result: Rectangle?,
): Rectangle
/**
* Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates
* of the tiling scheme.
* @param [x] The integer x coordinate of the tile.
* @param [y] The integer y coordinate of the tile.
* @param [level] The tile level-of-detail. Zero is the least detailed.
* @param [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @return The specified 'result', or a new object containing the rectangle
* if 'result' is undefined.
* @see Online Documentation
*/
override fun tileXYToNativeRectangle(
x: Double,
y: Double,
level: Int,
result: Any?,
): Rectangle
/**
* Converts tile x, y coordinates and level to a cartographic rectangle in radians.
* @param [x] The integer x coordinate of the tile.
* @param [y] The integer y coordinate of the tile.
* @param [level] The tile level-of-detail. Zero is the least detailed.
* @param [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @return The specified 'result', or a new object containing the rectangle
* if 'result' is undefined.
* @see Online Documentation
*/
override fun tileXYToRectangle(
x: Double,
y: Double,
level: Int,
result: Any?,
): Rectangle
/**
* Calculates the tile x, y coordinates of the tile containing
* a given cartographic position.
* @param [position] The position.
* @param [level] The tile level-of-detail. Zero is the least detailed.
* @param [result] The instance to which to copy the result, or undefined if a new instance
* should be created.
* @return The specified 'result', or a new object containing the tile x, y coordinates
* if 'result' is undefined.
* @see Online Documentation
*/
override fun positionToTileXY(
position: Cartographic,
level: Int,
result: Cartesian2?,
): Cartesian2
}