@JsType(isNative=true, namespace="Cesium", name="TilingScheme") public class TilingScheme extends Object
Modifier and Type | Field and Description |
---|---|
Ellipsoid |
ellipsoid
Gets the ellipsoid that is tiled by the tiling scheme.
|
MapProjection |
projection
Gets the map projection used by the tiling scheme.
|
Rectangle |
rectangle
Gets the rectangle, in radians, covered by this tiling scheme.
|
Constructor and Description |
---|
TilingScheme()
A tiling scheme for geometry or imagery on the surface of an ellipsoid.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfXTilesAtLevel(int level)
Gets the total number of tiles in the X direction at a specified level-of-detail.
|
int |
getNumberOfYTilesAtLevel(int level)
Gets the total number of tiles in the Y direction at a specified level-of-detail.
|
Cartesian2 |
positionToTileXY(Cartographic position,
int level)
Calculates the tile x, y coordinates of the tile containing a given cartographic position.
|
Cartesian2 |
positionToTileXY(Cartographic position,
int level,
Cartesian2 result)
Calculates the tile x, y coordinates of the tile containing a given cartographic position.
|
Rectangle |
rectangleToNativeRectangle(Rectangle rectangle)
Transforms an rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.
|
Rectangle |
rectangleToNativeRectangle(Rectangle rectangle,
Rectangle result)
Transforms an rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.
|
Rectangle |
tileXYToNativeRectangle(int x,
int y,
int level)
Converts tile x, y coordinates and level to an rectangle expressed in the native coordinates of the tiling scheme.
|
Rectangle |
tileXYToNativeRectangle(int x,
int y,
int level,
Rectangle result)
Converts tile x, y coordinates and level to an rectangle expressed in the native coordinates of the tiling scheme.
|
Rectangle |
tileXYToRectangle(int x,
int y,
int level)
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
Rectangle |
tileXYToRectangle(int x,
int y,
int level,
Rectangle result)
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
|
@JsProperty public Ellipsoid ellipsoid
@JsProperty public MapProjection projection
@JsProperty public Rectangle rectangle
@JsConstructor public TilingScheme()
WebMercatorTilingScheme
,
GeographicTilingScheme
@JsMethod public int getNumberOfXTilesAtLevel(int level)
level
- The level-of-detail.@JsMethod public int getNumberOfYTilesAtLevel(int level)
level
- The level-of-detail.@JsMethod public Cartesian2 positionToTileXY(Cartographic position, int level)
position
- The position.level
- The tile level-of-detail. Zero is the least detailed.@JsMethod public Cartesian2 positionToTileXY(Cartographic position, int level, Cartesian2 result)
position
- The position.level
- The tile level-of-detail. Zero is the least detailed.result
- The instance to which to copy the result, or undefined if a new instance should be created.@JsMethod public Rectangle rectangleToNativeRectangle(Rectangle rectangle)
rectangle
- The rectangle to transform.@JsMethod public Rectangle rectangleToNativeRectangle(Rectangle rectangle, Rectangle result)
rectangle
- The rectangle to transform.result
- The instance to which to copy the result, or undefined if a new instance should be created.@JsMethod public Rectangle tileXYToNativeRectangle(int x, int y, int level)
x
- The integer x coordinate of the tile.y
- The integer y coordinate of the tile.level
- The tile level-of-detail. Zero is the least detailed.@JsMethod public Rectangle tileXYToNativeRectangle(int x, int y, int level, Rectangle result)
x
- The integer x coordinate of the tile.y
- The integer y coordinate of the tile.level
- The tile level-of-detail. Zero is the least detailed.result
- The instance to which to copy the result, or undefined if a new instance should be created.@JsMethod public Rectangle tileXYToRectangle(int x, int y, int level)
x
- The integer x coordinate of the tile.y
- The integer y coordinate of the tile.level
- The tile level-of-detail. Zero is the least detailed.@JsMethod public Rectangle tileXYToRectangle(int x, int y, int level, Rectangle result)
x
- The integer x coordinate of the tile.y
- The integer y coordinate of the tile.level
- The tile level-of-detail. Zero is the least detailed.result
- The instance to which to copy the result, or undefined if a new instance should be created.Copyright © 2019. All rights reserved.