Methods
setUpCameraDefaults(itownsView, orbitControls, layers, camOptionsopt)
Sets up default camera settings for an iTowns view.
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
itownsView | PlanarView | iTowns view | |||||||||||||||||
orbitControls | OrbitControls | Orbit controls for the camera. | |||||||||||||||||
layers | Array.<Layer> | layers in the scene. | |||||||||||||||||
camOptions | object | <optional> | camera options. Properties
|
- Source
setUpSpeedControls(orbitControls) → {HTMLElement}
The function setUpSpeedControls creates a set of speed controls for an OrbitControls object in a 3D scene.
Name | Type | Description |
---|---|---|
orbitControls | OrbitControls | Object that likely contains properties and methods related to controlling the orbit of a camera in a 3D scene. |
- Source
returns the domElementSpeedControls
which is a div element containing the speed controls slider for the OrbitControls.
- Type:
- HTMLElement
setupLoadingUI(domElement, layers, itownsView, options) → {HTMLElement}
Sets up a loading UI for 3D tiles layers within a specified DOM element and iTowns view.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
domElement | HTMLElement | The container for the loading indicators. | ||||||
layers | Array.<C3DTilesLayer> | Array of 3D tiles layers to monitor for loading status. | ||||||
itownsView | PlanarView | The iTowns view with scene and camera. | ||||||
options | object | Additional options. Properties
|
- Source
The created loading UI element.
- Type:
- HTMLElement
Type Definitions
LayerConfig
- object
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
name | string | Name of the C3DTilesLayer. | ||||||
source | object | Source of the C3DTilesLayer. Properties
|