Tiles3DContent¶
3D Tiles のタイルコンテンツ
タイルが参照するコンテンツ (メッシュまたは外部タイルセット) を表すインターフェース。
See¶
Properties¶
attribution¶
readonlyattribution:string
著作権表示の文字列
batch_table¶
readonlybatch_table:undefined|object
b3dm の Batch Table JSON (3D Tiles 1.0)
持たない場合は undefined になる。
batch_table_binary¶
readonlybatch_table_binary:undefined|ArrayBuffer
b3dm の Batch Table バイナリ本体 (3D Tiles 1.0)
持たない場合は undefined になる。
group_metadata¶
readonlygroup_metadata:undefined|Tiles3DMetadata
このコンテンツが属するグループのメタデータ
metadata¶
readonlymetadata:undefined|Tiles3DMetadata
コンテンツ単位のメタデータ
tile¶
readonlytile:Tiles3DTile
このコンテンツを持つタイル
uri¶
readonlyuri:string
コンテンツ URI
Methods¶
getFeatureProperties()¶
getFeatureProperties(
feature_id):undefined|Record<string,Value>
feature ID からプロパティを取得
EXT_structural_metadata があればそちらから、無ければ b3dm の Batch Table (JSON の列配列、または binary body を指す列) から解決する。
値の型は Tiles3DStyle.Value。VEC2・VEC3・VEC4 の値は数値の配列で返る。 戻り値をそのまま Tiles3DStyle.evaluate に渡すと、VEC の値は描画のときと同じくベクトルとして評価される。 アプリケーションが作った数値の配列を渡したときは、ベクトルではなく配列として評価される。 戻り値のオブジェクトは呼び出しごとに新しく作るが、VEC 以外の配列やオブジェクトの値は複製しないので、書き換えると元のデータも書き換わる。
Parameters¶
| Parameter | Type | Description |
|---|---|---|
feature_id |
number |
pick 結果・_BATCHID・FEATURE_ID* のいずれかで得た feature ID |
Returns¶
undefined | Record<string, Value>