meteoJS/synview/type
Source: synview/
Child class
Abstract types
Events
Class
Type
Abstract types
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
|
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 |
Yes |
Preload options. |
preloadOptions Object
Preload options.
Property
Name | Type | Optional | Description |
---|---|---|---|
enabled |
boolean |
Yes |
Enable preload of the resources. Defaults to |
Events
change:resources
Triggered, if the set of timestamps changes (due to resource changes).
change:visible
Triggered on change of visibilty.