Class: AbstractTracker

AbstractTracker

Abstract class for tracker (position, elevation...)

new AbstractTracker(options)

Parameters:
Name Type Description
options object
Implements:

Methods


<abstract> update()


<abstract> compute()


<abstract> attachTo()


<abstract> detach()


update(event)

Update the tracker
Parameters:
Name Type Description
event object

compute(geoPosition)

Compute elevation from a specific point
Parameters:
Name Type Description
geoPosition
Returns:
elevation
Type
number

update(event)

Update the tracker
Parameters:
Name Type Description
event

compute(geoPosition)

Compute from geoPosition
Parameters:
Name Type Description
geoPosition Array.<float>

attachTo(globeContext)

Attaches the tracker to the globe
Parameters:
Name Type Description
globeContext globe globe

detach()

Detaches from the globe

Type Definitions


elevation_configuration

Elevation tracker configuration
Type:
Properties:
Name Type Argument Description
elevationLayer Layer <optional>
elevationLayer from planetLayer

position_configuration

Position tracker configuration
Type:
  • Object
Properties:
Name Type Argument Default Description
element string tracker div element
position string tracker position in the GUI
isMobile boolean <optional>
false Mobile device