椭球体表面上的几何或图像的切片方案。在细节级别零(最粗糙、最不详细的级别)处,图块的数量是可配置的。在细节级别 1,每个零级别图块都有四个子项,每个方向两个。在细节级别 2,每个级别 1 的图块都有四个子项,每个方向两个。这会持续到几何或图像源中存在的多个级别。 A tiling scheme for geometry or imagery on the surface of an ellipsoid. At level-of-detail zero, the coarsest, least-detailed level, the number of tiles is configurable. At level of detail one, each of the level zero tiles has four children, two in each direction. At level of detail two, each of the level one tiles has four children, two in each direction. This continues for as many levels as are present in the geometry or imagery source.
成员 Members
ellipsoid : Ellipsoid
获取按切片方案平铺的椭球体。 Gets the ellipsoid that is tiled by the tiling scheme.
projection : MapProjection
获取切片方案使用的地图投影。 Gets the map projection used by the tiling scheme.
rectangle : Rectangle
获取此切片方案覆盖的矩形(以弧度为单位)。 Gets the rectangle, in radians, covered by this tiling scheme.
方法 Methods
获取指定细节级别 X 方向上的图块总数。 Gets the total number of tiles in the X direction at a specified level-of-detail.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
level |
number | 详细程度。 The level-of-detail. |
返回: Returns:
给定级别 X 方向上的图块数量。 The number of tiles in the X direction at the given level.
获取指定细节级别的 Y 方向图块总数。 Gets the total number of tiles in the Y direction at a specified level-of-detail.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
level |
number | 详细程度。 The level-of-detail. |
返回: Returns:
给定级别 Y 方向上的图块数量。 The number of tiles in the Y direction at the given level.
positionToTileXY(position, level, result) → Cartesian2
计算包含给定制图位置的图块的图块 x、y 坐标。 Calculates the tile x, y coordinates of the tile containing a given cartographic position.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
position |
Cartographic | 位置。 The position. |
level |
number | 瓷砖的细节层次。零是最不详细的。 The tile level-of-detail. Zero is the least detailed. |
result |
Cartesian2 | 可选 optional 将结果复制到的实例,如果应创建新实例,则为未定义。 The instance to which to copy the result, or undefined if a new instance should be created. |
返回: Returns:
指定的“结果”,或者如果“结果”未定义,则包含图块 x、y 坐标的新对象。 The specified 'result', or a new object containing the tile x, y coordinates if 'result' is undefined.
rectangleToNativeRectangle(rectangle, result) → Rectangle
将以大地弧度指定的矩形转换为此切片方案的本地坐标系。 Transforms a rectangle specified in geodetic radians to the native coordinate system of this tiling scheme.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
rectangle |
Rectangle | 要变换的矩形。 The rectangle to transform. |
result |
Rectangle | 可选 optional 将结果复制到的实例,如果应创建新实例,则为未定义。 The instance to which to copy the result, or undefined if a new instance should be created. |
返回: Returns:
指定的“结果”,或者如果“结果”未定义,则包含本机矩形的新对象。 The specified 'result', or a new object containing the native rectangle if 'result' is undefined.
tileXYToNativeRectangle(x, y, level, result) → Rectangle
将切片 x、y 坐标和级别转换为以切片方案的本机坐标表示的矩形。 Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates of the tiling scheme.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
x |
number | 图块的整数 x 坐标。 The integer x coordinate of the tile. |
y |
number | 图块的整数 y 坐标。 The integer y coordinate of the tile. |
level |
number | 瓷砖的细节层次。零是最不详细的。 The tile level-of-detail. Zero is the least detailed. |
result |
object | 可选 optional 将结果复制到的实例,如果应创建新实例,则为未定义。 The instance to which to copy the result, or undefined if a new instance should be created. |
返回: Returns:
指定的“结果”,或者如果“结果”未定义,则包含矩形的新对象。 The specified 'result', or a new object containing the rectangle if 'result' is undefined.
tileXYToRectangle(x, y, level, result) → Rectangle
将图块 x、y 坐标和级别转换为以弧度表示的制图矩形。 Converts tile x, y coordinates and level to a cartographic rectangle in radians.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
x |
number | 图块的整数 x 坐标。 The integer x coordinate of the tile. |
y |
number | 图块的整数 y 坐标。 The integer y coordinate of the tile. |
level |
number | 瓷砖的细节层次。零是最不详细的。 The tile level-of-detail. Zero is the least detailed. |
result |
object | 可选 optional 将结果复制到的实例,如果应创建新实例,则为未定义。 The instance to which to copy the result, or undefined if a new instance should be created. |
返回: Returns:
指定的“结果”,或者如果“结果”未定义,则包含矩形的新对象。 The specified 'result', or a new object containing the rectangle if 'result' is undefined.
