Appearance
TilesetLayer (3DTiles 3D Model Layer)
Layer for loading and managing 3DTiles 3D model data.
Constructor
ts
new ge3d.object.TilesetLayer(options?: any): TilesetLayerParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| url | Resource/String | - | URL of tileset's main JSON file |
| maximumScreenSpaceError | Number | 16 | Maximum screen space error used to drive level of detail refinement |
| maximumMemoryUsage | Number | 512 | Maximum amount of memory (in MB) that the dataset can use |
| shadows | ShadowMode | ENABLED | Determine whether tileset casts or receives shadows from light sources |
| position | Object | - | New center point position of model |
| rotation | Object | - | Rotation direction of model |
| scale | Number | 1 | Scale ratio |
| style | Object/Cesium3DTileStyle/Function | - | Model style |
| clampToGround | Boolean | false | Whether to clamp to ground |
Properties
| Property | Type | Description |
|---|---|---|
| id | any | Object id identifier |
| name | any | Name identifier |
| show | any | Show/hide state |
| opacity | any | Opacity, range 0.0-1.0 |
| position | any | Current center point coordinates of model |
| rotation | any | Rotation direction |
| scale | any | Scale ratio |
| tileset | any | Cesium3DTileset object corresponding to model |
Methods
flyTo
Position to data area
ts
flyTo(options?: {}): voidclampToGround
Model automatic ground clamping calculation and processing
ts
clampToGround(offset?: number): voidrotate
Rotate model
ts
rotate(options: { callback: (arg0: any) => void; show: any }): voidtoJSON
Convert to JSON
ts
toJSON(): object