Hook¶
3D Tiles プロバイダフック
独自の 3D Tiles プロバイダを作成する際に実装するインターフェース。
See¶
Methods¶
init()¶
init(
options?):Promise<null|RootInfo>
タイルプロバイダを初期化しルートタイルをリクエストする。
- 初期化、リクエストに失敗した場合は null を返す。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
options? |
RequestOption |
リクエストのオプション (中断信号など) |
Returns¶
Promise<null | RootInfo>
ルートタイルの情報 (失敗した場合は null)
requestContent()¶
requestContent(
content_uri,type,options?):Promise<null|ArrayBuffer|TileJson>
3D Tiles コンテンツをリクエストする。
- リクエストに失敗した場合は null を返す。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
content_uri |
string |
タイルが持つ content uri |
type |
ContentType |
リクエストするファイルのタイプ |
options? |
RequestOption |
リクエストのオプション (中断信号など) |
Returns¶
Promise<null | ArrayBuffer | TileJson>
type が "JSON" なら tileset JSON、"ARRAYBUFFER" なら ArrayBuffer (失敗した場合は null)