Class: AssetColors

AssetColors()

An AssetColors collection represents the colors used to create a color scale for an asset in a map. The last color in the collection is treated as a default.

Constructor

new AssetColors()

Since:
  • 2.18.0
Source:

Extends

  • Backbone.Collection

Members

model :Backbone.Model

The class/model that this collection contains.
Type:
  • Backbone.Model
Source:

Methods

getDefaultColor() → {AssetColor}

Finds the last color model in the collection. If there are no colors in the collection, returns the default color set in a new Asset Color model.
Source:
Returns:
Type
AssetColor