Appearance
KBE3D / KBCore / Cesium / GeographicTilingScheme
类: GeographicTilingScheme
A tiling scheme for geometry referenced to a simple GeographicProjection where longitude and latitude are directly mapped to X and Y. This projection is commonly known as geographic, equirectangular, equidistant cylindrical, or plate carrée.
参数
Object with the following properties:
参数
The ellipsoid whose surface is being tiled. Defaults to the default ellipsoid.
参数
The rectangle, in radians, covered by the tiling scheme.
参数
The number of tiles in the X direction at level zero of the tile tree.
参数
The number of tiles in the Y direction at level zero of the tile tree.
属性
ellipsoid
ellipsoid:
Ellipsoid
Gets the ellipsoid that is tiled by this tiling scheme.
rectangle
rectangle:
Rectangle
Gets the rectangle, in radians, covered by this tiling scheme.
projection
projection:
MapProjection
Gets the map projection used by this tiling scheme.
方法
getNumberOfXTilesAtLevel()
getNumberOfXTilesAtLevel(
level:number):number
Gets the total number of tiles in the X direction at a specified level-of-detail.
参数
level
number
The level-of-detail.
返回
number
The number of tiles in the X direction at the given level.
getNumberOfYTilesAtLevel()
getNumberOfYTilesAtLevel(
level:number):number
Gets the total number of tiles in the Y direction at a specified level-of-detail.
参数
level
number
The level-of-detail.
返回
number
The number of tiles in the Y direction at the given level.
rectangleToNativeRectangle()
rectangleToNativeRectangle(
rectangle:Rectangle,result?:Rectangle):Rectangle
Transforms a rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.
参数
rectangle
The rectangle to transform.
result?
The instance to which to copy the result, or undefined if a new instance should be created.
返回
The specified 'result', or a new object containing the native rectangle if 'result' is undefined.
tileXYToNativeRectangle()
tileXYToNativeRectangle(
x:number,y:number,level:number,result?:any):Rectangle
Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates of the tiling scheme.
参数
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.
返回
The specified 'result', or a new object containing the rectangle if 'result' is undefined.
tileXYToRectangle()
tileXYToRectangle(
x:number,y:number,level:number,result?:any):Rectangle
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
参数
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.
返回
The specified 'result', or a new object containing the rectangle if 'result' is undefined.
positionToTileXY()
positionToTileXY(
position:Cartographic,level:number,result?:Cartesian2):Cartesian2
Calculates the tile x, y coordinates of the tile containing a given cartographic position.
参数
position
The position.
level
number
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.
返回
The specified 'result', or a new object containing the tile x, y coordinates if 'result' is undefined.
构造函数
构造函数
new GeographicTilingScheme(
options?: {ellipsoid?:Ellipsoid;rectangle?:Rectangle;numberOfLevelZeroTilesX?:number;numberOfLevelZeroTilesY?:number; }):GeographicTilingScheme
参数
options?
ellipsoid?
rectangle?
numberOfLevelZeroTilesX?
number
numberOfLevelZeroTilesY?
number
返回
GeographicTilingScheme
