椭球体表面上的几何或影像的切片方案。 在细节层次为零时,
最粗糙、最不详细的级别,瓦片的数量是可配置的。
在细节级别 1 中,每个级别 0 磁贴都有四个子级,每个方向两个。
在细节级别 2 中,每个级别 1 磁贴都有四个子项,每个方向两个子项。
对于几何或影像源中存在的多个级别,此操作将持续。
Members
ellipsoid : Ellipsoid
获取由切片方案平铺的椭球体。
projection : MapProjection
获取切片方案使用的地图投影。
rectangle : Rectangle
获取此平铺方案覆盖的矩形(以弧度为单位)。
Methods
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:
The number of tiles in the X direction at the given level.
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:
The number of tiles in the Y direction at the given level.
positionToTileXY(position, level, result) → Cartesian2
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:
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
Converts tile x, y coordinates and level to a rectangle expressed in the native coordinates
of the tiling scheme.
Name | Type | Description |
---|---|---|
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 |
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
Converts tile x, y coordinates and level to a cartographic rectangle in radians.
Name | Type | Description |
---|---|---|
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 |
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.