Class: FeatureListerModel

FeatureLister FeatureListerModel

FeatureListerModel

new FeatureListerModel()

modules/featureLister/model.js, line 45
Properties:
Name Type Default Description
maxFeatures Number 20 maximally loaded features per layer, can be configured
isActive Boolean false Flag if the model is active
layerlist Array Array of {id, name, features}
layerid String "" id of visible Layer which shall be shown
layer Core.ModelList.Layer {} Layer of the layerlist with requested layerid
headers Array Array table headers in the list
featureid String "" id of the feature to be shown
featureProps Object {} Properties of the feature with requested featureid
highlightedFeature Object null Feature that is currently highlighted
highlightedFeatureStyle Object null Feature style of the currently highlighted feature
glyphicon String "glyphicon-menu-hamburger" id of the glyphicon to use in the template
Fires:
Listens to Events:

Extends

Methods

addLayerToList(layer){void}

modules/featureLister/model.js, line 274
Adds layers to the list
Name Type Description
layer Object layer to add to the list

checkVisibleLayer(){void}

modules/featureLister/model.js, line 178
Checks the layer list and adds new layers
Fires:
  • ModelList#event:RadioRequestModelListGetModelsByAttributes

downlightFeature(){void}

modules/featureLister/model.js, line 144
Scales the style of the deselected feature back to previous value

getFeatureList(layerId){void}

modules/featureLister/model.js, line 230
Gets the features from a layer when the layer is selected
Name Type Description
layerId String id of the layer to read the features
Fires:
  • ModelList#event:RadioRequestModelListGetModelsByAttributes

getFeatureWithFeatureId(){void}

modules/featureLister/model.js, line 85
Takes the selected feature, checks the properties and zooms to it
Fires:

getLayerWithLayerId(){void}

modules/featureLister/model.js, line 158
Keeps the selected layer in mind

highlightFeature(id){void}

modules/featureLister/model.js, line 120
Scales the style of the selected feature by 1.5
Name Type Description
id String id of the feature to highlight

highlightMouseFeature(evt){void}

modules/featureLister/model.js, line 63
When a gfi opens, this function trys to find the corresponding feature in the list and select it
Name Type Description
evt Event Event, which feature shall be highlighted
Fires:

removeLayerFromList(layer){void}

modules/featureLister/model.js, line 215
Removes no longer visible layers from the list
Name Type Description
layer Object layer to remove from the list

setHighlightedFeature(value){void}

modules/featureLister/model.js, line 291
setter for highlightedFeature
Name Type Description
value Object feature to set as highlightedFeature

setHighlightedFeatureStyle(value){void}

modules/featureLister/model.js, line 299
setter for highlightedFeatureStyle
Name Type Description
value Object style to set as highlightedFeatureStyle

Events

inherited changeIsActive

devtools/jsdoc/events.js, line 2216
Fired when param isActive changes

inherited RadioRequestToolGetCollection

devtools/jsdoc/events.js, line 2211
Delivers an array with configured tools

inherited RadioRequestToolGetSupportedIn3d

devtools/jsdoc/events.js, line 2175
Delivers an array with toll which supported in 3d-Mode /** -------------------- TOOLS.VIRTUALCITY --------------------

inherited RadioRequestToolGetSupportedOnlyIn3d

devtools/jsdoc/events.js, line 2170
Delivers an array with toll which supported only in 3d-Mode

inherited RadioRequestToolGetSupportedOnlyInOblique

devtools/jsdoc/events.js, line 2206
Delivers an array with toll which supported only in Oblique-Mode