Class: map

Core map

map

new map(mapViewSettings)

modules/core/map.js, line 85
todo
Name Type Description
mapViewSettings Object Settings for the map.
Properties:
Name Type Default Description
initalLoading Number 0 todo
Fires:
Listens to Events:

Extends

Methods

addAliasForWFSFromGoeserver(epsgCode){void}

modules/core/map.js, line 196
Creates an alias for the srsName. This is necessary for WFS from geoserver.org.
Name Type Description
epsgCode String used epsg code in the mapView

addControl(control){void}

modules/core/map.js, line 424
Adds a control to the map.
Name Type Description
control * Control to be added.

addInteraction(interaction){void}

modules/core/map.js, line 380
Adds an interaction to the map.
Name Type Description
interaction * Interaction to be added.

addLayerOnTop(layer){void}

modules/core/map.js, line 442
Put the layer on top of the map.
Name Type Description
layer ol/layer To be placed on top of the map.

addLayerToIndex(args){void}

modules/core/map.js, line 460
Moves the layer on the map to the intended position.
Name Type Description
args Array [0] = Layer, [1] = Index

addLoadingLayer(){void}

modules/core/map.js, line 619
todo

addMarker(event){void}

modules/core/map.js, line 215
Function is registered as an event listener if the config-parameter "inputMap" is present and always sets a mapMarker at the clicked position without activating it. Also triggers the RemoteInterface with the marker coordinates.
Name Type Description
event event The MapBrowserPointerEvent
Fires:

addOverlay(overlay){void}

modules/core/map.js, line 398
Adds an ovleray to the map.
Name Type Description
overlay * Overlay to be added.

bBoxToMap(bbox){void}

modules/core/map.js, line 288
todo
Name Type Description
bbox * todo

calculateExtent(features){*}

modules/core/map.js, line 589
todo
Name Type Description
features * todo

createLayerIfNotExists(name){*}

modules/core/map.js, line 659
Checks if the layer with the name "Name" already exists and uses it, if not, creates a new layer.
Name Type Description
name * todo
Fires:

getFeaturesAtPixel(pixel, options){Array.<features>}

modules/core/map.js, line 355
Return features at a pixel coordinate
Name Type Description
pixel pixel Pixelcoordinate
options object layerDefinition and pixelTolerance
Returns:
Array with features

getLayerByName(layerName){ol.layer}

modules/core/map.js, line 240
Finds a layer by its name and returns it.
Name Type Description
layerName string Name of the Layers
Returns:
found layer

getLayers(){*}

modules/core/map.js, line 261
Getter for Layers from the map.
Returns:
from the map

getMapMode(){String}

modules/core/map.js, line 363
Returns the mapmode. Oblique, 3D and 2D are available for selection.

getOverlayById(id){ol.Overlay}

modules/core/map.js, line 692
gets an overlay by its identifier
Name Type Description
id string | number identifier
Returns:
overlay

getResolutionForScale(scale, units){Number}

modules/core/map.js, line 737
Gets the resolution for a given scale Code taken from https://github.com/terrestris/ol-util/blob/8284a4d984bb429d8283c9b5d4bc802d67b4a6f7/src/MapUtil/MapUtil.js#L88
Name Type Description
scale Number scale to derive resolution from
units String Unit of measurement "m" or "degrees"
Returns:
resolution for a given scale

getScaleForResolution(resolution, units){Number}

modules/core/map.js, line 755
Gets the scale for a given resolution Code taken from https://github.com/terrestris/ol-util/blob/8284a4d984bb429d8283c9b5d4bc802d67b4a6f7/src/MapUtil/MapUtil.js#L105
Name Type Description
resolution Number resolution to derive scale from
units String Unit of measurement "m" or "degrees"
Returns:
scale for a given resolution

getSize(){ol.Size}

modules/core/map.js, line 611
Returns the size in pixels of the map.
Returns:
array of two numbers [width, height].

getWGS84MapSizeBBOX(){*}

modules/core/map.js, line 298
todo

getWGS84MapSizeBBOXFromEPSG25833(){*}

modules/core/map.js, line 311
todo

initalLoadingChanged(){void}

modules/core/map.js, line 638
Initial loading. "initalLoading" is incremented across layers if several tiles are loaded and incremented again if the tiles are loaded. Listener is then stopped so that the loader is only displayed during initial loading - not when zoom/pan is selected. [...]
Fires:

registerListener(event, callback, context){*}

modules/core/map.js, line 329
Registered listener for certain events on the map. See http://openlayers.org/en/latest/apidoc/ol.Map.html
Name Type Description
event String The Eventtype.
callback function The Callback function.
context Object todo

removeControl(control){void}

modules/core/map.js, line 433
Removes a control from the map.
Name Type Description
control * Control to be removed.

removeInteraction(interaction){void}

modules/core/map.js, line 389
Removes an interaction from the map.
Name Type Description
interaction * Interaction to be remove.

removeLayer(layer){void}

modules/core/map.js, line 451
Removes a layler from the map.
Name Type Description
layer * - Layer to be removed.

removeLoadingLayer(){void}

modules/core/map.js, line 627
todo

removeOverlay(overlay){void}

modules/core/map.js, line 407
Removes an overlay from the map.
Name Type Description
overlay * Overlay to be removed.

removeOverlays(){void}

modules/core/map.js, line 415
Removes all overlays from the map.

render(){void}

modules/core/map.js, line 269
Render the map

setBBox(bbox){void}

modules/core/map.js, line 278
Sets the bounding box for the map.
Name Type Description
bbox * todo

setImportDrawMeasureLayersOnTop(layers){void}

modules/core/map.js, line 520
Pushes 'alwaysOnTop' layers to the top of the collection.
Name Type Description
layers ol.Collection Layer Collection.

setLayerToIndex(layer, index){void}

modules/core/map.js, line 504
Sets an already inserted ol.layer to the defined index using openlayers setZIndex method
Name Type Default Description
layer ol.Layer Layer to set.
index integer 0 optional New Index.

setMap(value){void}

modules/core/map.js, line 723
Setter for the map.
Name Type Description
value ol/map The map.

setVectorLayer(value){void}

modules/core/map.js, line 253
Setter for vectorLayer.
Name Type Description
value * todo

showMouseMoveText(){void}

modules/core/map.js, line 700
This function allows the hover text to be hovered so that the text could be copied a new class "hoverText" will be inserted by mouseover and removed by mouseout

unregisterListener(event, callback, context){void}

modules/core/map.js, line 340
Unsubscribes listener to certain events.
Name Type Description
event String | Object The event type or an object used as a key.
callback function The callback function.
context Object todo

zoomToExtent(extent, options){void}

modules/core/map.js, line 537
todo
Name Type Description
extent * todo
options * todo

zoomToFilteredFeatures(ids, layerId){void}

modules/core/map.js, line 559
todo
Name Type Description
ids * todo
layerId * todo
Fires: