Constructor
new TimeFilter(target, options, layers)
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement | string | |
options |
object | filter specific options |
layers |
LayerManager | Used for included/excluded layers |
- Source:
Methods
getActiveFilter() → {object}
Get the filter object to pass it on to the Layers.
- Source:
Returns:
filter object
- Type
- object
getOptions()
Get the filter's options-object
- Source:
getValueForSchema_(iso, value) → {object}
internal method for getting the selected date values
adjusted to the time resolution defined in options.schema
Parameters:
Name | Type | Description |
---|---|---|
iso |
boolean | returns full iso-datestring if true |
value |
object | number | (optional) |
- Source:
Returns:
{begin, end}
- Type
- object
initHeader_(slider, type, operators, isLast) → {SliderHeader}
Init a slider header and its events including
validation and autocompletion of the input
Parameters:
Name | Type | Description |
---|---|---|
slider |
Slider | |
type |
string | |
operators |
Array.<string> | |
isLast |
boolean |
- Source:
Returns:
header
- Type
- SliderHeader
reloadOptions_()
method to reload options after applying settings
- Source: