Reference Source
public class | source

Playback

Playback Control Class

See:

Constructor Summary

Public Constructor
public

constructor(options: Object)

Playback constructor

Member Summary

Public Members
public

options: *

public

Method Summary

Public Methods
public

addToMapView(mapview: Object): Null

Add control to mapview

public

clearData(): Null

Clear all the data

public

Get the end time of the control

public

Get the speed of the control

public

Get the start time of the control

public

Whether the control is playing

public

remove(): Null

Remove control

public

setData(geoJSON: Object): Null

Set the data.

public

setSpeed(speed: Number): Null

Get the speed of the control

public

start(): Null

Start to run the track

public

stop(): Null

Stop to run the track

public

toggle(): Null

Display the control or not

Public Constructors

public constructor(options: Object) source

Playback constructor

Params:

NameTypeAttributeDescription
options Object

config params

options.tickLen Number

Set tick length in miliseconds. Increasing this value, may improve performance, at the cost of animation smoothness.

options.speed Number

Set float multiplier for default animation speed.

options.tracksLayer Boolean

If true, enable the trackers layer control.

options.playControl Boolean

If true, enable the play control.

options.dateControl Boolean

If true, enable the date control.

options.sliderControl Boolean

If true, enable the slider control.

options.tracksLayerPosition String

Set the position of the tracks layer control.

options.playControlPosition String

Set the position of the play control.

options.dateControlPosition String

Set the position of the date control.

options.sliderControlPosition String

Set the position of the slider control.

options.geojson Object

Set the data.

options.popups Boolean

When set to true, the pop-up is enabled.

options.popups_autoClose Boolean

When set to true, the pop-up box will automatically close when clicking other tags.

options.tooltips Boolean

When set to true, the tooltip is enabled.

options.popups Boolean

If true, enable popups.

options.popups_autoClose Boolean

If true, the popup will auto close when you click other marker.

options.tooltips Boolean

If true, enable tooltips.

options.label_gpsTrack String

Set the label of 'gps track'.

options.label_latlng String

Set the label of 'lat lng'.

Public Members

public options: * source

public playback: * source

Public Methods

public addToMapView(mapview: Object): Null source

Add control to mapview

Params:

NameTypeAttributeDescription
mapview Object

mapview object

Return:

Null

public clearData(): Null source

Clear all the data

Return:

Null

public getEndTime(): Number source

Get the end time of the control

Return:

Number

public getSpeed(): Number source

Get the speed of the control

Return:

Number

public getStartTime(): Number source

Get the start time of the control

Return:

Number

public isPlaying(): Boolean source

Whether the control is playing

Return:

Boolean

public remove(): Null source

Remove control

Return:

Null

public setData(geoJSON: Object): Null source

Set the data.

Params:

NameTypeAttributeDescription
geoJSON Object

the data

Return:

Null

See:

public setSpeed(speed: Number): Null source

Get the speed of the control

Params:

NameTypeAttributeDescription
speed Number

the speed of the control

Return:

Null

public start(): Null source

Start to run the track

Return:

Null

public stop(): Null source

Stop to run the track

Return:

Null

public toggle(): Null source

Display the control or not

Return:

Null