Class: HighlightFeatureModel

HighlightFeature HighlightFeatureModel

HighlightFeatureModel

new HighlightFeatureModel()

modules/highlightFeature/model.js, line 29
Properties:
Name Type Description
polygonStyle Style Default style to hightlight a feature
Fires:
  • ParametricURL#event:RadioRequestParametricURLGetHighlightFeature
  • Map#event:RadioRequestMapCreateLayerIfNotExists
  • ModelList#event:RadioRequestModelListGetModelByAttributes
Listens to Events:

Extends

Methods

addFeature(feature){void}

modules/highlightFeature/model.js, line 89
Adds the feature to a layer that has the hightlight style. If layer does not exist, it will be created.
Name Type Description
feature ol.Feature feature which shall be added to the hightlight-layer
Fires:
  • Map#event:RadioRequestMapCreateLayerIfNotExists

createStyle(){Style}

modules/highlightFeature/model.js, line 104
Creates a style for highlighting features
Returns:
new Style with stroke and fill

getAndAddFeature(layerId, featureId){void}

modules/highlightFeature/model.js, line 62
Searches the feature which shall be hightlighted
Name Type Description
layerId String Id of the layer, containing the feature to hightlight
featureId String Id of feature which shall be hightlighted
Fires:
  • ModelList#event:RadioRequestModelListGetModelByAttributes
Listens to Events:
  • Layer#event:RadioTriggerLayerFeaturesLoaded

highlightFeature(featureToAdd){void}

modules/highlightFeature/model.js, line 49
Hightlights a specific feature
Name Type Description
featureToAdd String String with comma seperated information about the feature to add "layerId, featureId"

highlightPolygon(feature){void}

modules/highlightFeature/model.js, line 121
highlights a polygon feature
Name Type Description
feature ol.Feature the feature to be highlighted
Fires:
  • Map#event:RadioRequestMapCreateLayerIfNotExists