Class: AssetCategories

AssetCategories()

AssetCategories collection is a group of AssetCategory models - models that provide the information required to render geo-spatial data in categories, including people, infrastructure, permafrost, etc.

Constructor

new AssetCategories()

Since:
  • 2.28.0
Source:

Extends

  • Backbone.Collection

Members

model

Source:

Methods

getMapAssets() → {Array.<MapAssets>}

Gets an array of MapAssets, one from each AssetCategory model.
Source:
Returns:
A list of MapAssets collections.
Type
Array.<MapAssets>

getMapAssetsFlat() → {MapAssets}

Gets a single, flattened MapAssets collection from the AssetCategory group in the collection.
Source:
Returns:
A single MapAssets collection constructed from groups of MapAsset models.
Type
MapAssets

setMapModel(mapModel)

Set the parent map model on each of the AssetCategory models in this collection. This must be the Map model that contains this asset collection.
Parameters:
Name Type Description
mapModel MapModel The map model to set on each of the AssetCategory models
Source: