Methods

setUpCameraDefaults(itownsView, orbitControls, layers, camOptionsopt)

Sets up default camera settings for an iTowns view.

Parameters:
NameTypeAttributesDescription
itownsViewPlanarView

iTowns view

orbitControlsOrbitControls

Orbit controls for the camera.

layersArray.<Layer>

layers in the scene.

camOptionsobject<optional>

camera options.

Properties
NameTypeAttributesDescription
defaultobject<optional>

Default camera options.

Properties
NameTypeAttributesDescription
positionobject<optional>

Default camera position coordinates.

setUpSpeedControls(orbitControls) → {HTMLElement}

The function setUpSpeedControls creates a set of speed controls for an OrbitControls object in a 3D scene.

Parameters:
NameTypeDescription
orbitControlsOrbitControls

Object that likely contains properties and methods related to controlling the orbit of a camera in a 3D scene.

Returns:

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.

Parameters:
NameTypeDescription
domElementHTMLElement

The container for the loading indicators.

layersArray.<C3DTilesLayer>

Array of 3D tiles layers to monitor for loading status.

itownsViewPlanarView

The iTowns view with scene and camera.

optionsobject

Additional options.

Properties
NameTypeDescription
c3DTilesLoadingDomElementClassesArray.<string>

CSS classes for styling the loading UI.

Returns:

The created loading UI element.

Type: 
HTMLElement

Type Definitions

LayerConfig

Type:
  • object
Properties
NameTypeDescription
namestring

Name of the C3DTilesLayer.

sourceobject

Source of the C3DTilesLayer.

Properties
NameTypeDescription
urlstring

URL to the tileset.json.