Class: BackForwardModel

Controls.BackForward BackForwardModel

BackForwardModel

new BackForwardModel()

modules/controls/backForward/model.js, line 24
Create backforward control instance
Properties:
Name Type Default Description
stepForwardText String "", filled with "Nächste Ansicht"- translated
stepBackwardText String "", filled with "Letzte Ansicht"- translated
Listens to Events:

Extends

Methods

centerFromStorage(center){Coordinates}

modules/controls/backForward/model.js, line 173
Transforms the center coordinates from storage to target projection
Name Type Description
center Coordinates center coordinates
Returns:
center coordinates

centerToStorage(center){Coordinates}

modules/controls/backForward/model.js, line 160
Transforms the center coordinates into the storage projection.
Name Type Description
center Coordinates center coordinates
Returns:
center coordinates

changeLang(lng){Void}

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

getCurrentCenterScale(){Array.<?>}

modules/controls/backForward/model.js, line 115
Gets the CenterScale of the current position in the form [ol/coordinate, scale]
Returns:
CenterScale element

getCurrentMapProjection(){String}

modules/controls/backForward/model.js, line 144
Gets the current MapProjection code
Returns:
map projection's epsg code

getResolutionForScale(scale, epsg){Number}

modules/controls/backForward/model.js, line 201
Gets the resolution for scale using an epsg code
Name Type Description
scale Number scale to get the resolution from
epsg String epsg code
Returns:
resolution for the scale

getScaleForResolution(resolution, epsg){Number}

modules/controls/backForward/model.js, line 187
Gets the scale for resolution using an epsg code
Name Type Description
resolution Number resolution to get the scale from
epsg String epsg code
Returns:
scale for the resolution

pushCenterScales(center, scale){void}

modules/controls/backForward/model.js, line 74
Pushes a center, scale pair to CenterScales. Transforms values before doing so.
Name Type Description
center Coordinates the center coordinates
scale Number the scale

setCenterScales(val){void}

modules/controls/backForward/model.js, line 61
Sets given parameters for CenterScales.
Name Type Description
val Array Value array with information about center coordinates

setConfigData(configData){void}

modules/controls/backForward/model.js, line 53
Sets the given parameter for config
Name Type Description
configData Object bakcforward object form config.json

setCurrentPos(val){void}

modules/controls/backForward/model.js, line 136
Sets given parameters for CurrentPos.
Name Type Description
val Array Value array with information about current position

setWentFor(bool){void}

modules/controls/backForward/model.js, line 128
Sets given parameters for WentFor.
Name Type Description
bool Boolean boolean with true or false

shiftCenterScales(){void}

modules/controls/backForward/model.js, line 101
Shifts CenterScales

spliceCenterScales(idx){void}

modules/controls/backForward/model.js, line 89
Splices CenterScales at given index
Name Type Description
idx Number the index to splice at