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:
- Core#event:RadioRequestMapGetSize
- Core#event:RadioRequestParametricURLGetCenter
- Core#event:RadioRequestParametricURLGetProjectionFromUrl
- Core#event:RadioRequestParametricURLGetZoomLevel
- Alerting#event:RadioTriggerAlertAlert
- ClickCounter#event:RadioTriggerClickCounterZoomChanged
- MapMarker#event:RadioTriggerMapMarkerHideMarker
- Core#event:RadioTriggerMapViewChangedCenter
- Core#event:RadioTriggerMapViewChangedOptions
- Core#event:RadioTriggerMapViewChangedZoomLevel
- RemoteInterface#event:RadioTriggerRemoteInterfacePostMessage
- Core#event:RadioRequestMapGetMap
Listens to Events:
- Core#event:RadioRequestMapViewGetCurrentExtent
- Core#event:RadioRequestMapViewGetOptions
- Core#event:RadioRequestMapViewGetProjection
- Core#event:RadioRequestMapViewGetResoByScale
- Core#event:RadioRequestMapViewGetScales
- Core#event:RadioRequestMapViewGetZoomLevel
- Core#event:RadioRequestMapViewGetResolutions
- Core#event:RadioRequestMapViewGetSettingsCenter
- Core#event:RadioRequestMapViewGetSettingsResolution
- Core#event:RadioRequestMapViewGetSettingsExtent
- Core#event:RadioTriggerMapViewResetView
- Core#event:RadioTriggerMapViewSetCenter
- Core#event:RadioTriggerMapViewSetConstrainedResolution
- Core#event:RadioTriggerMapViewSetScale
- Core#event:RadioTriggerMapViewSetZoomLevelDown
- Core#event:RadioTriggerMapViewSetZoomLevelUp
- Core#event:RadioTriggerMapViewToggleBackground
- Core#event:RadioTriggerMapViewSetView
- Core#event:RadioTriggerMapViewSetSettingsCenter
- Core#event:RadioTriggerMapViewSetSettingsResolution
- Core#event:RadioTriggerMapViewSetSettingsExtent
Extends
Methods
-
animate(params, callback){void}
modules/core/mapView.js, line 327 -
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 364 -
gets the center from the mapView
Returns:
Coords
-
getCurrentExtent(){ol.extent}
modules/core/mapView.js, line 395 -
calculate the extent for the current view state and the passed size
Fires:
-
getResoByScale(scale, scaleType){number}
modules/core/mapView.js, line 342 -
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 373 -
todo
Name Type Description scale
float todo -
getSettingsCenter(){Array.<Number>}
modules/core/mapView.js, line 423 -
Get the settings center value
Returns:
settings center value
-
getSettingsExtent(){ol.extent}
modules/core/mapView.js, line 443 -
Get the settings extent value
Returns:
settings extent value
-
getSettingsResolution(){Number}
modules/core/mapView.js, line 433 -
Get the settings resolution value
Returns:
settings resolution value
-
getZoom(){number}
modules/core/mapView.js, line 386 -
Return current Zoom of MapView
Returns:
Zoom of MapView
-
prepareStartCenter(value){void}
modules/core/mapView.js, line 231 -
todo
Name Type Description value
int todo Fires:
-
resetView(){void}
modules/core/mapView.js, line 193 -
Sets center and resolution to initial values
Fires:
-
setBackground(value){void}
modules/core/mapView.js, line 212 -
Sets the Background for the Mapview.
Name Type Description value
string Image Url -
setBackgroundImage(value){void}
modules/core/mapView.js, line 221 -
Sets the Backgroundimage for the Mapview.
Name Type Description value
string BG Image Url -
setCenter(coords, zoomLevel){void}
modules/core/mapView.js, line 287 -
todo
Name Type Description coords
array Coordinates zoomLevel
number Zoom Level -
setConstrainedResolution(resolution, direction){void}
modules/core/mapView.js, line 183 -
todo
Name Type Description resolution
number - direction
number 0 set the nearest, 1 set the largest nearest, -1 set the smallest nearest -
setOptions(value){void}
modules/core/mapView.js, line 415 -
Sets projection from param url
Name Type Description value
Object options from mapView -
setProjectionFromParamUrl(projection){void}
modules/core/mapView.js, line 406 -
Sets projection from param url
Name Type Description projection
string todo -
setResolutionByScale(scale){void}
modules/core/mapView.js, line 169 -
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 454 -
Sets the settings startCenter value
Name Type Description center
Coords the new center -
setSettingsExtent(extent){void}
modules/core/mapView.js, line 482 -
Sets the settings extent value
Name Type Description extent
ol.Extent the new extent -
setSettingsResolution(resolution){void}
modules/core/mapView.js, line 468 -
Sets the settings resolution value
Name Type Description resolution
Number the new resolution -
setStartZoomLevel(value){void}
modules/core/mapView.js, line 247 -
todo
Name Type Description value
number Zoom Level -
setView(view){void}
modules/core/mapView.js, line 273 -
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 317 -
Reduces the zoomlevel by one.
-
setZoomLevelUp(){void}
modules/core/mapView.js, line 309 -
Increases the zoomlevel by one.
-
toggleBackground(){void}
modules/core/mapView.js, line 257 -
todo