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:RadioTriggerMapViewSetResolution
- 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 328 -
Animate panning or zomming.
Name Type Description paramsObject the animation configuration (properties: center, duration, zoom) callbackfunction 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 evtObjectEvent openlayers event object Name Type Description keystring the name of the property whose value is changing targetol.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 scaleString | number todo scaleTypeString min or max -
getResolution(scale){float}
modules/core/mapView.js, line 374 -
todo
Name Type Description scalefloat 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 valueint 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 valuestring Image Url -
setBackgroundImage(value){void}
modules/core/mapView.js, line 222 -
Sets the Backgroundimage for the Mapview.
Name Type Description valuestring BG Image Url -
setCenter(coords, zoomLevel){void}
modules/core/mapView.js, line 288 -
todo
Name Type Description coordsarray Coordinates zoomLevelnumber Zoom Level -
setOptions(value){void}
modules/core/mapView.js, line 416 -
Sets projection from param url
Name Type Description valueObject options from mapView -
setProjectionFromParamUrl(projection){void}
modules/core/mapView.js, line 407 -
Sets projection from param url
Name Type Description projectionstring todo -
setResolution(resolution){void}
modules/core/mapView.js, line 184 -
Sets the resolution of the map view.
Name Type Description resolutionnumber 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 scalenumber map view scale -
setSettingsCenter(center){void}
modules/core/mapView.js, line 455 -
Sets the settings startCenter value
Name Type Description centerCoords the new center -
setSettingsExtent(extent){void}
modules/core/mapView.js, line 483 -
Sets the settings extent value
Name Type Description extentol.Extent the new extent -
setSettingsResolution(resolution){void}
modules/core/mapView.js, line 469 -
Sets the settings resolution value
Name Type Description resolutionNumber the new resolution -
setStartZoomLevel(value){void}
modules/core/mapView.js, line 248 -
todo
Name Type Description valuenumber Zoom Level -
setView(view){void}
modules/core/mapView.js, line 274 -
Sets the view.
Name Type Description viewobject 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