Skip to content

TilesetLayer (3DTiles 3D Model Layer)

Layer for loading and managing 3DTiles 3D model data.

Constructor

ts
new ge3d.object.TilesetLayer(options?: any): TilesetLayer

Parameters

ParameterTypeDefaultDescription
urlResource/String-URL of tileset's main JSON file
maximumScreenSpaceErrorNumber16Maximum screen space error used to drive level of detail refinement
maximumMemoryUsageNumber512Maximum amount of memory (in MB) that the dataset can use
shadowsShadowModeENABLEDDetermine whether tileset casts or receives shadows from light sources
positionObject-New center point position of model
rotationObject-Rotation direction of model
scaleNumber1Scale ratio
styleObject/Cesium3DTileStyle/Function-Model style
clampToGroundBooleanfalseWhether to clamp to ground

Properties

PropertyTypeDescription
idanyObject id identifier
nameanyName identifier
showanyShow/hide state
opacityanyOpacity, range 0.0-1.0
positionanyCurrent center point coordinates of model
rotationanyRotation direction
scaleanyScale ratio
tilesetanyCesium3DTileset object corresponding to model

Methods

flyTo

Position to data area

ts
flyTo(options?: {}): void

clampToGround

Model automatic ground clamping calculation and processing

ts
clampToGround(offset?: number): void

rotate

Rotate model

ts
rotate(options: { callback: (arg0: any) => void; show: any }): void

toJSON

Convert to JSON

ts
toJSON(): object