Map

MapQuery/OpenLayers based map

Class, Widget & Style

  • Class: Mapbender\CoreBundle\Element\Map
  • Widget: , mapquery//lib//openlayers//OpenLayers.js, mapquery//lib//jquery//jquery.tmpl.js, mapquery//src//jquery.mapquery.core.js, proj4js//proj4js-compressed.js, mapbender.element.map.js
  • Style: mapbender.elements.css, mapquery//lib//openlayers//theme//default//style.css

Configuration

layerset: null             # layer collection
dpi: 72                    # resolution
srs: "EPSG:4326"           # coordinate referece system. Two srs definitions are supported:
                             - "EPSG:CODE" or
                             - "EPSG:CODE|MY SRS TITLE"
otherSrs: array(
   "EPSG:31466",
   "EPSG:31467",
   "EPSG:25832")           # other coordinate referece systems. Two srs definitions are supported:
                             - ["EPSG:CODE","EPSG:CODE"] or
                             - ["EPSG:CODE|MY SRS TITLE","EPSG:CODE|MY SRS TITLE"]

units: "degrees"           # units to use deegrees/meters
extents: array(
    max: array(0, 40, 20, 60)
    start: array(5, 45, 15, 55)) # map extents
maxResolution: "auto" #
scales: "25000000,10000000,5000000,1000000,500000" # a csv scale list
imgPath: "bundles/mapbendercore/mapquery/lib/openlayers/img" #

HTTP Callbacks

None.

JavaScript API

center

<>

highlight

<>

layer

<>

appendLayer

<>

insert

<>

rebuildStacking

<>

move

Moves a layer up (direction == true) or down (direction == false) on the same level in the layer hierarchy.

zoomIn

<>

zoomOut

<>

zoomToFullExtent

<>

zoomToScale

<>

panMode

<>

addPopup

<>

removePopup

<>

removeById

<>

layerById

Searches for a MapQuery layer by it’s Mapbender id. Returns the layer or null if not found.

scales

<>

setMapProjection

<>

getAllSrs

<>

ready

<>

JavaScript Signals

None.