Class: MapView

Core MapView

MapView

new MapView(){void}

modules/core/mapView.js, line 56
todo
Properties:
Name Type Default Description
background String "" todo
units String "m" todo
DOTS_PER_INCH number "" Hack to get the screen resolution
Fires:
Listens to Events:

Extends

Methods

animate(params, callback){void}

modules/core/mapView.js, line 328
Animate panning or zomming.
Name Type Description
params Object the animation configuration (properties: center, duration, zoom)
callback function callback function that is called after animation

changedResolutionCallback(evt){void}

modules/core/mapView.js, line 153
is called when the view resolution is changed triggers the map view options
Name Type Description
evt ObjectEvent openlayers event object
Name Type Description
key string the name of the property whose value is changing
target ol.View this.get("view")
Fires:

getCenter(){array}

modules/core/mapView.js, line 365
gets the center from the mapView
Returns:
Coords

getCurrentExtent(){ol.extent}

modules/core/mapView.js, line 396
calculate the extent for the current view state and the passed size
Fires:

getResoByScale(scale, scaleType){number}

modules/core/mapView.js, line 343
Returns the corresponding resolution for the scale.
Name Type Description
scale String | number todo
scaleType String min or max

getResolution(scale){float}

modules/core/mapView.js, line 374
todo
Name Type Description
scale float todo

getSettingsCenter(){Array.<Number>}

modules/core/mapView.js, line 424
Get the settings center value
Returns:
settings center value

getSettingsExtent(){ol.extent}

modules/core/mapView.js, line 444
Get the settings extent value
Returns:
settings extent value

getSettingsResolution(){Number}

modules/core/mapView.js, line 434
Get the settings resolution value
Returns:
settings resolution value

getZoom(){number}

modules/core/mapView.js, line 387
Return current Zoom of MapView
Returns:
Zoom of MapView

prepareStartCenter(value){void}

modules/core/mapView.js, line 232
todo
Name Type Description
value int todo
Fires:

resetView(){void}

modules/core/mapView.js, line 194
Sets center and resolution to initial values
Fires:

setBackground(value){void}

modules/core/mapView.js, line 213
Sets the Background for the Mapview.
Name Type Description
value string Image Url

setBackgroundImage(value){void}

modules/core/mapView.js, line 222
Sets the Backgroundimage for the Mapview.
Name Type Description
value string BG Image Url

setCenter(coords, zoomLevel){void}

modules/core/mapView.js, line 288
todo
Name Type Description
coords array Coordinates
zoomLevel number Zoom Level

setOptions(value){void}

modules/core/mapView.js, line 416
Sets projection from param url
Name Type Description
value Object options from mapView

setProjectionFromParamUrl(projection){void}

modules/core/mapView.js, line 407
Sets projection from param url
Name Type Description
projection string todo

setResolution(resolution){void}

modules/core/mapView.js, line 184
Sets the resolution of the map view.
Name Type Description
resolution number The resolution to set.

setResolutionByScale(scale){void}

modules/core/mapView.js, line 171
finds the right resolution for the scale and sets it for this view
Name Type Description
scale number map view scale

setSettingsCenter(center){void}

modules/core/mapView.js, line 455
Sets the settings startCenter value
Name Type Description
center Coords the new center

setSettingsExtent(extent){void}

modules/core/mapView.js, line 483
Sets the settings extent value
Name Type Description
extent ol.Extent the new extent

setSettingsResolution(resolution){void}

modules/core/mapView.js, line 469
Sets the settings resolution value
Name Type Description
resolution Number the new resolution

setStartZoomLevel(value){void}

modules/core/mapView.js, line 248
todo
Name Type Description
value number Zoom Level

setView(view){void}

modules/core/mapView.js, line 274
Sets the view.
Name Type Description
view object todo

setViewListeners(){void}

modules/core/mapView.js, line 133
Sets the view listeners to the view. This function should be called when overwriting the current view with a new object to register existing listeners to the new view.

setZoomLevelDown(){void}

modules/core/mapView.js, line 318
Reduces the zoomlevel by one.

setZoomLevelUp(){void}

modules/core/mapView.js, line 310
Increases the zoomlevel by one.

toggleBackground(){void}

modules/core/mapView.js, line 258
todo

MapView

new MapView()

addons/reachability/views/map/view.js, line 16
Properties:
Name Type Description
model RoutingLGB the routing model

Extends

Methods

animate(params, callback){void}

modules/core/mapView.js, line 328
Animate panning or zomming.
Name Type Description
params Object the animation configuration (properties: center, duration, zoom)
callback function callback function that is called after animation

changedResolutionCallback(evt){void}

modules/core/mapView.js, line 153
is called when the view resolution is changed triggers the map view options
Name Type Description
evt ObjectEvent openlayers event object
Name Type Description
key string the name of the property whose value is changing
target ol.View this.get("view")
Fires:

getCenter(){array}

modules/core/mapView.js, line 365
gets the center from the mapView
Returns:
Coords

getCurrentExtent(){ol.extent}

modules/core/mapView.js, line 396
calculate the extent for the current view state and the passed size
Fires:

getResoByScale(scale, scaleType){number}

modules/core/mapView.js, line 343
Returns the corresponding resolution for the scale.
Name Type Description
scale String | number todo
scaleType String min or max

getResolution(scale){float}

modules/core/mapView.js, line 374
todo
Name Type Description
scale float todo

getSettingsCenter(){Array.<Number>}

modules/core/mapView.js, line 424
Get the settings center value
Returns:
settings center value

getSettingsExtent(){ol.extent}

modules/core/mapView.js, line 444
Get the settings extent value
Returns:
settings extent value

getSettingsResolution(){Number}

modules/core/mapView.js, line 434
Get the settings resolution value
Returns:
settings resolution value

getZoom(){number}

modules/core/mapView.js, line 387
Return current Zoom of MapView
Returns:
Zoom of MapView

prepareStartCenter(value){void}

modules/core/mapView.js, line 232
todo
Name Type Description
value int todo
Fires:

resetView(){void}

modules/core/mapView.js, line 194
Sets center and resolution to initial values
Fires:

setBackground(value){void}

modules/core/mapView.js, line 213
Sets the Background for the Mapview.
Name Type Description
value string Image Url

setBackgroundImage(value){void}

modules/core/mapView.js, line 222
Sets the Backgroundimage for the Mapview.
Name Type Description
value string BG Image Url

setCenter(coords, zoomLevel){void}

modules/core/mapView.js, line 288
todo
Name Type Description
coords array Coordinates
zoomLevel number Zoom Level

setOptions(value){void}

modules/core/mapView.js, line 416
Sets projection from param url
Name Type Description
value Object options from mapView

setProjectionFromParamUrl(projection){void}

modules/core/mapView.js, line 407
Sets projection from param url
Name Type Description
projection string todo

setResolution(resolution){void}

modules/core/mapView.js, line 184
Sets the resolution of the map view.
Name Type Description
resolution number The resolution to set.

setResolutionByScale(scale){void}

modules/core/mapView.js, line 171
finds the right resolution for the scale and sets it for this view
Name Type Description
scale number map view scale

setSettingsCenter(center){void}

modules/core/mapView.js, line 455
Sets the settings startCenter value
Name Type Description
center Coords the new center

setSettingsExtent(extent){void}

modules/core/mapView.js, line 483
Sets the settings extent value
Name Type Description
extent ol.Extent the new extent

setSettingsResolution(resolution){void}

modules/core/mapView.js, line 469
Sets the settings resolution value
Name Type Description
resolution Number the new resolution

setStartZoomLevel(value){void}

modules/core/mapView.js, line 248
todo
Name Type Description
value number Zoom Level

setView(view){void}

modules/core/mapView.js, line 274
Sets the view.
Name Type Description
view object todo

setViewListeners(){void}

modules/core/mapView.js, line 133
Sets the view listeners to the view. This function should be called when overwriting the current view with a new object to register existing listeners to the new view.

setZoomLevelDown(){void}

modules/core/mapView.js, line 318
Reduces the zoomlevel by one.

setZoomLevelUp(){void}

modules/core/mapView.js, line 310
Increases the zoomlevel by one.

toggleBackground(){void}

modules/core/mapView.js, line 258
todo

MapView

new MapView()

addons/routingLGB/views/map/view.js, line 28
Properties:
Name Type Description
model RoutingLGB the routing model
avoidAreasSelectListener Object the handle that is active in delete avoid area mode

Extends

Methods

animate(params, callback){void}

modules/core/mapView.js, line 328
Animate panning or zomming.
Name Type Description
params Object the animation configuration (properties: center, duration, zoom)
callback function callback function that is called after animation

changedResolutionCallback(evt){void}

modules/core/mapView.js, line 153
is called when the view resolution is changed triggers the map view options
Name Type Description
evt ObjectEvent openlayers event object
Name Type Description
key string the name of the property whose value is changing
target ol.View this.get("view")
Fires:

getCenter(){array}

modules/core/mapView.js, line 365
gets the center from the mapView
Returns:
Coords

getCurrentExtent(){ol.extent}

modules/core/mapView.js, line 396
calculate the extent for the current view state and the passed size
Fires:

getResoByScale(scale, scaleType){number}

modules/core/mapView.js, line 343
Returns the corresponding resolution for the scale.
Name Type Description
scale String | number todo
scaleType String min or max

getResolution(scale){float}

modules/core/mapView.js, line 374
todo
Name Type Description
scale float todo

getSettingsCenter(){Array.<Number>}

modules/core/mapView.js, line 424
Get the settings center value
Returns:
settings center value

getSettingsExtent(){ol.extent}

modules/core/mapView.js, line 444
Get the settings extent value
Returns:
settings extent value

getSettingsResolution(){Number}

modules/core/mapView.js, line 434
Get the settings resolution value
Returns:
settings resolution value

getZoom(){number}

modules/core/mapView.js, line 387
Return current Zoom of MapView
Returns:
Zoom of MapView

prepareStartCenter(value){void}

modules/core/mapView.js, line 232
todo
Name Type Description
value int todo
Fires:

resetView(){void}

modules/core/mapView.js, line 194
Sets center and resolution to initial values
Fires:

setBackground(value){void}

modules/core/mapView.js, line 213
Sets the Background for the Mapview.
Name Type Description
value string Image Url

setBackgroundImage(value){void}

modules/core/mapView.js, line 222
Sets the Backgroundimage for the Mapview.
Name Type Description
value string BG Image Url

setCenter(coords, zoomLevel){void}

modules/core/mapView.js, line 288
todo
Name Type Description
coords array Coordinates
zoomLevel number Zoom Level

setOptions(value){void}

modules/core/mapView.js, line 416
Sets projection from param url
Name Type Description
value Object options from mapView

setProjectionFromParamUrl(projection){void}

modules/core/mapView.js, line 407
Sets projection from param url
Name Type Description
projection string todo

setResolution(resolution){void}

modules/core/mapView.js, line 184
Sets the resolution of the map view.
Name Type Description
resolution number The resolution to set.

setResolutionByScale(scale){void}

modules/core/mapView.js, line 171
finds the right resolution for the scale and sets it for this view
Name Type Description
scale number map view scale

setSettingsCenter(center){void}

modules/core/mapView.js, line 455
Sets the settings startCenter value
Name Type Description
center Coords the new center

setSettingsExtent(extent){void}

modules/core/mapView.js, line 483
Sets the settings extent value
Name Type Description
extent ol.Extent the new extent

setSettingsResolution(resolution){void}

modules/core/mapView.js, line 469
Sets the settings resolution value
Name Type Description
resolution Number the new resolution

setStartZoomLevel(value){void}

modules/core/mapView.js, line 248
todo
Name Type Description
value number Zoom Level

setView(view){void}

modules/core/mapView.js, line 274
Sets the view.
Name Type Description
view object todo

setViewListeners(){void}

modules/core/mapView.js, line 133
Sets the view listeners to the view. This function should be called when overwriting the current view with a new object to register existing listeners to the new view.

setZoomLevelDown(){void}

modules/core/mapView.js, line 318
Reduces the zoomlevel by one.

setZoomLevelUp(){void}

modules/core/mapView.js, line 310
Increases the zoomlevel by one.

toggleBackground(){void}

modules/core/mapView.js, line 258
todo