TracksLayer

new TracksLayer(properties)

A layer representing tracks. The objects "tracks" variable is a THREE.Object3D that can be added to a scene and controls global visibility, position, bounds etc.
Parameters:
NameTypeDescription
propertiesObject
Properties
NameTypeDescription
idString | Numberlayer id should be unique
nameStringthe name can be anything you want and is intended for labeling

Methods

addToScene()

add the tracks to the given scene

getTracks() → {THREE.Object3D}

Returns this layer's tracks
Returns:
a parent Object3D representing all the tracks
Type: 
THREE.Object3D

update()

updates the layer objects