| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
Object with the following properties:
|
Members
获取由此分块方案所分块的椭球体。
获取此分块方案所使用的地图投影。
获取此分块方案所覆盖的矩形区域,以弧度表示。
Methods
获取在指定细节层次(level-of-detail)时 X 方向上的瓦片总数。
| Name | Type | Description |
|---|---|---|
level |
number | 细节层次(level-of-detail)。 |
Returns:
在给定级别时 X 方向上的瓦片数量。
获取在指定细节层次(level-of-detail)时 Y 方向上的瓦片总数。
| Name | Type | Description |
|---|---|---|
level |
number | 细节层次(level-of-detail)。 |
Returns:
在给定级别时 Y 方向上的瓦片数量。
positionToTileXY(position, level, result) → Cartesian2
计算包含给定地理坐标位置的瓦片的 x、y 坐标。
| Name | Type | Description |
|---|---|---|
position |
Cartographic | 位置。 |
level |
number | 瓦片的细节层次(level-of-detail)。0 表示最不详细。 |
result |
Cartesian2 | optional 要将结果复制到的实例,如果要创建新实例则为 undefined。 |
Returns:
指定的 'result',或者(如果 'result' 为 undefined)一个包含瓦片 x、y 坐标的新对象。
rectangleToNativeRectangle(rectangle, result) → Rectangle
将用测地弧度指定的矩形转换为此分块方案的本地坐标系。
| Name | Type | Description |
|---|---|---|
rectangle |
Rectangle | 要转换的矩形。 |
result |
Rectangle | optional 要将结果复制到的实例,如果要创建新实例则为 undefined。 |
Returns:
指定的 'result',或者(如果 'result' 为 undefined)一个包含本地矩形的新对象。
tileXYToNativeRectangle(x, y, level, result) → Rectangle
将瓦片 x、y 坐标和级别转换为用分块方案的本地坐标表示的矩形。
| Name | Type | Description |
|---|---|---|
x |
number | 瓦片的整数 x 坐标。 |
y |
number | 瓦片的整数 y 坐标。 |
level |
number | 瓦片的细节层次(level-of-detail)。0 表示最不详细。 |
result |
Rectangle | optional 要将结果复制到的实例,如果要创建新实例则为 undefined。 |
Returns:
指定的 'result',或者(如果 'result' 为 undefined)一个包含矩形的新对象。
tileXYToRectangle(x, y, level, result) → Rectangle
将瓦片 x、y 坐标和级别转换为以弧度表示的地理坐标矩形。
| Name | Type | Description |
|---|---|---|
x |
number | 瓦片的整数 x 坐标。 |
y |
number | 瓦片的整数 y 坐标。 |
level |
number | 瓦片的细节层次(level-of-detail)。0 表示最不详细。 |
result |
Rectangle | optional 要将结果复制到的实例,如果要创建新实例则为 undefined。 |
Returns:
指定的 'result',或者(如果 'result' 为 undefined)一个包含矩形的新对象。
