Class: LayerLegendView

LayerLegendView()

A legend view for a particular layer that contains the layer name and the color details.

Screenshot

Constructor

new LayerLegendView()

Since:
  • 2.30.0
Source:

Extends

  • Backbone.View

Members

className

Source:

layerName :string

The name of the layer that this legend applies to.
Type:
  • string
Source:

model :AssetColorPalette

The palette model that this view uses
Type:
Source:

template

Source:

Methods

initialize()

Source:

render()

Source:

renderCategoricalPalette()

Fills the palette div with categorical swatches.
Source:

renderContinuousPalette()

Fills the palette div with a continuous swatch.
Source:

renderTemplate()

Populates the view template with variabels.
Source: