コンテンツにスキップ

Tiles3DContent

3D Tiles のタイルコンテンツ

タイルが参照するコンテンツ (メッシュまたは外部タイルセット) を表すインターフェース。

See

Tiles3DTile

Properties

attribution

readonly attribution: string

著作権表示の文字列


batch_table

readonly batch_table: undefined | object

b3dm の Batch Table JSON (3D Tiles 1.0)

持たない場合は undefined になる。


batch_table_binary

readonly batch_table_binary: undefined | ArrayBuffer

b3dm の Batch Table バイナリ本体 (3D Tiles 1.0)

持たない場合は undefined になる。


group_metadata

readonly group_metadata: undefined | Tiles3DMetadata

このコンテンツが属するグループのメタデータ


metadata

readonly metadata: undefined | Tiles3DMetadata

コンテンツ単位のメタデータ


tile

readonly tile: Tiles3DTile

このコンテンツを持つタイル


uri

readonly uri: 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>