new AktualitaetenModel()
addons/aktualitaeten/model.js, line 31
Properties:
| Name | Type | Default | Description |
|---|---|---|---|
name |
String | "Aktualitäten" | Display name for the control button and header. |
strictMode |
Boolean | false | Flag enabling automatic cleanup of hidden aktualitäten layers. |
aktualitaetenLayers |
Array.<Backbone.Model> | [ | List of aktualitäten layer models currently shown. |
emptyMessage |
String | "Keine | Aktualitäten verfügbar" Placeholder text rendered when no layers are available. |
glyphicon |
String | "glyphicon-list" | Icon class applied to the control button when no config override is present. |
isVisible |
Boolean | false | Visibility flag shared with the view container. |
Listens to Events:
- ModelList#event:RadioTriggerModelListUpdatedSelectedLayerList
- AktualitaetenModel#change:isVisible
Extends
Methods
-
buildAktualitaetenModels(idSet){Array.<Backbone.Model>}
addons/aktualitaeten/model.js, line 103 -
Resolves aktualitäten layer models for the supplied ids and orders them by layer order descending.
Name Type Description idSetIterable.<String> Collection of aktualitäten ids. Returns:
aktualitäten models.
-
cleanupAktualitaetenSelections(allowedIds){void}
addons/aktualitaeten/model.js, line 115 -
Unselects hidden aktualitäten layers that are not part of the current mapping when strict mode is enabled.
Name Type Description allowedIdsIterable.<String> Ids that should stay selected. -
collectAktualitaetenLayerIds(normalLayers){Set.<String>}
addons/aktualitaeten/model.js, line 85 -
Collects unique aktualitäten layer ids referenced by the active standard layers.
Name Type Description normalLayersArray.<Backbone.Model> Selected layer models that expose aktualitäten mappings. Returns:
of aktualitäten layer ids.
-
refresh(){void}
addons/aktualitaeten/model.js, line 57 -
Synchronises the aktualitäten layer list with the currently selected base layers.
-
toggleVisibility(){void}
addons/aktualitaeten/model.js, line 49 -
Toggles the visibility flag and informs the view through bindings.