Child class

Abstract types

Class

Abstract types

inner

options  Object

Options for the constructor.

Parameters

Name Type Optional Description

id

(string or undefined)

 

ID.

visible

boolean

Yes

Visibility.

zIndex

(undefined or number)

Yes

zIndex on map.

displayMethod

('nearest' or 'floor')

Yes

Method to determine the displayed resource.

displayMaxResourceAge

number

Yes

Maximum time space between display and resource time (in seconds).

displayFadeStart

number

Yes

Fade resource from this age to the display time (in seconds).

displayFadeStartOpacity

number

Yes

Opacity (between 0 and 1) at displayFadingTime.

className

(undefined or String)

 

Classname.

imageSmoothingEnabled

(undefined or boolean)

Yes

Value of imageSmoothingEnabled when drawing the layers of this type to canvas. Undefined uses the default (true). When a module:meteoJS/synview/resource.Resource has explicitly set an own value (module:meteoJS/synview/resource.Resource#imageSmoothingEnabled), this will be ignored.

tooltip

(module:meteoJS/synview/tooltip~contentFunction or undefined)

Yes

Tooltip function. If color detection will be used with this type, you must set an unique className.

preload

module:meteoJS/synview/type~preloadOptions

Yes

Preload options.

inner

preloadOptions  Object

Preload options.

Property

Name Type Optional Description

enabled

boolean

Yes

Enable preload of the resources.

Defaults to false.

Events

change:resources

Triggered, if the set of timestamps changes (due to resource changes).

change:visible

Triggered on change of visibilty.