Skip to content

xgis-cesium v0.1.7


xgis-cesium / CustomMercatorTilingScheme

Class: CustomMercatorTilingScheme ​

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:8

Extends ​

  • WebMercatorTilingScheme

Constructors ​

new CustomMercatorTilingScheme() ​

new CustomMercatorTilingScheme(options): CustomMercatorTilingScheme

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:9

Parameters ​

options ​

Returns ​

CustomMercatorTilingScheme

Overrides ​

Cesium.WebMercatorTilingScheme.constructor

Properties ​

_origin ​

_origin: any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:11


_resolutions ​

_resolutions: any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:14


_tileSize ​

_tileSize: any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:13


_zoomOffset ​

_zoomOffset: any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:12


ellipsoid ​

ellipsoid: Ellipsoid

Defined in: node_modules/@cesium/engine/index.d.ts:18221

Gets the ellipsoid that is tiled by this tiling scheme.

Inherited from ​

Cesium.WebMercatorTilingScheme.ellipsoid


projection ​

projection: MapProjection

Defined in: node_modules/@cesium/engine/index.d.ts:18229

Gets the map projection used by this tiling scheme.

Inherited from ​

Cesium.WebMercatorTilingScheme.projection


rectangle ​

rectangle: Rectangle

Defined in: node_modules/@cesium/engine/index.d.ts:18225

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

Inherited from ​

Cesium.WebMercatorTilingScheme.rectangle

Accessors ​

zoomOffset ​

Get Signature ​

get zoomOffset(): any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:17

Returns ​

any

Methods ​

getNumberOfXTilesAtLevel() ​

getNumberOfXTilesAtLevel(level): number

Defined in: node_modules/@cesium/engine/index.d.ts:18235

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

Parameters ​

level ​

number

The level-of-detail.

Returns ​

number

The number of tiles in the X direction at the given level.

Inherited from ​

Cesium.WebMercatorTilingScheme.getNumberOfXTilesAtLevel


getNumberOfYTilesAtLevel() ​

getNumberOfYTilesAtLevel(level): number

Defined in: node_modules/@cesium/engine/index.d.ts:18241

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

Parameters ​

level ​

number

The level-of-detail.

Returns ​

number

The number of tiles in the Y direction at the given level.

Inherited from ​

Cesium.WebMercatorTilingScheme.getNumberOfYTilesAtLevel


positionToTileXY() ​

positionToTileXY(position, level, result): any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:45

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

Parameters ​

position ​

any

The position.

level ​

any

The tile level-of-detail. Zero is the least detailed.

result ​

any

The instance to which to copy the result, or undefined if a new instance should be created.

Returns ​

any

The specified 'result', or a new object containing the tile x, y coordinates if 'result' is undefined.

Overrides ​

Cesium.WebMercatorTilingScheme.positionToTileXY


rectangleToNativeRectangle() ​

rectangleToNativeRectangle(rectangle, result?): Rectangle

Defined in: node_modules/@cesium/engine/index.d.ts:18251

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

Parameters ​

rectangle ​

Rectangle

The rectangle to transform.

result? ​

Rectangle

The instance to which to copy the result, or undefined if a new instance should be created.

Returns ​

Rectangle

The specified 'result', or a new object containing the native rectangle if 'result' is undefined.

Inherited from ​

Cesium.WebMercatorTilingScheme.rectangleToNativeRectangle


tileXYToNativeRectangle() ​

tileXYToNativeRectangle(x, y, level, result): any

Defined in: src/imagery/tiling-scheme/CustomMercatorTilingScheme.js:21

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

Parameters ​

x ​

any

The integer x coordinate of the tile.

y ​

any

The integer y coordinate of the tile.

level ​

any

The tile level-of-detail. Zero is the least detailed.

result ​

any

The instance to which to copy the result, or undefined if a new instance should be created.

Returns ​

any

The specified 'result', or a new object containing the rectangle if 'result' is undefined.

Overrides ​

Cesium.WebMercatorTilingScheme.tileXYToNativeRectangle


tileXYToRectangle() ​

tileXYToRectangle(x, y, level, result?): Rectangle

Defined in: node_modules/@cesium/engine/index.d.ts:18274

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

Parameters ​

x ​

number

The integer x coordinate of the tile.

y ​

number

The integer y coordinate of the tile.

level ​

number

The tile level-of-detail. Zero is the least detailed.

result? ​

any

The instance to which to copy the result, or undefined if a new instance should be created.

Returns ​

Rectangle

The specified 'result', or a new object containing the rectangle if 'result' is undefined.

Inherited from ​

Cesium.WebMercatorTilingScheme.tileXYToRectangle