Class: OverviewMapModel

Controls.OverviewMap OverviewMapModel

OverviewMapModel

new OverviewMapModel(attr)

modules/controls/overviewMap/model.js, line 42
Name Type Description
attr Object optional configuration object defined in config.json
Name Type Default Description
layerId String baselayer optional layerId to use in map
isInitOpen Boolean true optional Flag to open or disable map control on startup
resolution Number maxResolution optional Resolution to use in map control
Properties:
Name Type Default Description
showOverviewControlText String "", filled with "Übersichtskarte einblenden"- translated
hideOverviewControlText String "", filled with "Übersichtskarte ausblenden"- translated
showOverviewTableText String "", filled with "Mini-Map einschalten"- translated
hideOverviewTableText String "", filled with "Mini-Map ausschalten"- translated
Fires:
Listens to Events:

Extends

Methods

changeLang(lng){Void}

modules/controls/overviewMap/model.js, line 63
change language - sets default values for the language
Name Type Description
lng String the language changed to

createOverviewMap(){void}

modules/controls/overviewMap/model.js, line 106
Returns an overviewMap.
Fires:

getBaseLayerFromCollection(layers, baselayer){object}

modules/controls/overviewMap/model.js, line 166
Derives the baselayer from the given layer collection
Name Type Description
layers Array.<Layer> The Array of layers
baselayer string The id of the baselayer
Returns:
Baselayer params.

getOvmLayer(baselayer){ol/Image}

modules/controls/overviewMap/model.js, line 193
Creates the layer for the overview map
Name Type Description
baselayer string Id of baselayer
Returns:
The open layer image layer

newOverviewmap(id, baselayer, ovmView){ol/control/OverviewMap}

modules/controls/overviewMap/model.js, line 146
Creates a new overview map.
Name Type Description
id String Element-Id to combine map with HTLMElement
baselayer String [description] layer to use in map
ovmView ol.View View to use with overlay
Returns:
The generated overview map.

removeControl(){void}

modules/controls/overviewMap/model.js, line 93
Removes the mapControl from map.
Fires:

setIsOpen(value){void}

modules/controls/overviewMap/model.js, line 231
Setter for isOpen.
Name Type Description
value * todo

setLayerId(value){void}

modules/controls/overviewMap/model.js, line 222
Setter for layerId.
Name Type Description
value * todo

setMapControl(value){void}

modules/controls/overviewMap/model.js, line 213
Setter for MapControl.
Name Type Description
value * todo

showControl(){void}

modules/controls/overviewMap/model.js, line 77
Creates and sets the mapControl only once and sets it to the map.
Fires: