Class: VectorFilterView

VectorFilterView()

VectorFilterView is a shared component for visualizing data based on the "filter" attributes set up in the map configuration file. The initial implementation of this component focuses on time-series data visualization.

Constructor

new VectorFilterView()

Since:
  • 2.34.0
Source:

Extends

  • Backbone.View

Members

classes :object

Classes that are used to identify the HTML elements that comprise this view.
Type:
  • object
Source:

model :MapAsset

The model that this view uses
Type:
Source:

template :Underscore.template

The primary HTML template for this view
Type:
  • Underscore.template
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

handlePropertyChange(selectedFilterProperty)

Updates the property values dropdown for the selected filter property
Parameters:
Name Type Description
selectedFilterProperty Array.<string> The property selected in the filter property dropdown in an array format.
Source:

handleValueChange(selectedValues)

Update the filter values in the filter model based on selection made in the Filter by Property dropdowns Update the map model. Update layer visibility and icons.
Parameters:
Name Type Description
selectedValues Array.<string> The values that are selected in values the Select View
Source:

initialize(attributes)

Executed when a new VectorFilterView is created
Parameters:
Name Type Description
attributes object The attributes to initialize the view with
Source:

render() → {VectorFilterView}

Renders this view
Source:
Returns:
Returns the rendered view element
Type
VectorFilterView

renderPropertySelect()

Renders the dropdown for selecting a property (i.e., filterable attributes) from the filter models. These filterable attributes are defined by the "property" key in the portal configuration (Map model).
Source:

renderValueSelect()

Renders the dropdown for selecting values corresponding to a filter property selection. Retrieves values from the (vector filter) model. During initialization, the filterStatus is false, and the "values"
Source: