Class: LegendContainerView

LegendContainerView()

A container for the legend overlay on the map.

Screenshot

Constructor

new LegendContainerView()

Since:
  • 2.30.0
Source:

Extends

  • Backbone.View

Members

className

Source:

model :Map

The model that this view uses
Type:
Source:

template

Source:

Methods

events()

Source:

initialize()

Source:

render()

Source:

toggleExpanded()

Toggles the expanded state of the legend container.
Source:

updateColorPalette(layer, colorPaletteModel) → {AssetColorPalette}

Sets the active state of the filter based values (for categorical filters) in the Color Palette model.
Parameters:
Name Type Description
layer Layer item model
colorPaletteModel Asset color palette model
Source:
Returns:
- Return the updated color palette model
Type
AssetColorPalette

updateLegend()

Updates the legend with the current color palettes.
Source: