Mb myBBOX
From MapbenderWiki
User:Christoph Baudson (Module maintainer)
- see also: Mod setPoi2Scale
Contents |
english
The module setBBOX reads the (optional) GUI startup parameter 'mb_myBBOX', 'mb_myBBOXEpsg', 'mb_myBBOXEpsg_transform' to define the extent of the map at startup.
mb_myBBOX=minx,miny,maxx,maxy mb_myBBOXEpsg=EPSG:31467 mb_myBBOXEpsg_transform=EPSG:31467
- Example
The extent is valid for each mapframe, which is listed in the field 'Target' in the administrative GUI. Several mapframes are listed seperated by comma (without spaces). Notice that this value is volatile and Mapbender will always ZoomFull to the bbox of the first loaded WMS service - not this extent.
deutsch
Das Modul setBBOX setzt den Startausschnitt (Hauptkartenfenster und /oder Übersichtskarte) aufgrund eines bei der Anmeldung übergebenen Parameters mb_myBBOX.
mb_myBBOX=minx,miny,maxx,maxy
- Beispiel
- Parametrierter GUI-Aufruf mit Startausschnitt für Mittelamerika
- GUI mit Standardausschnitt (Umgebungsrechteck des ersten geladenen Dienstes)
In der Administration wird über das Feld 'Target' festgelegt für welche Kartenfenster dieser Startausschnitt gilt. Mehrere Kartenfenster werden kommasepariert (ohne Freizeichen) angegeben. Dieser Wert wird nicht dauerhaft erinnert. Mapbender zoomt immer auf das Umgebungsrechteck des ersten geladenen Dienstes, wenn Gesamtausschnitt gewählt wird, nicht auf diesen übergebenen Wert. Das könnte sich aber ändern lassen.
Parameter
&mb_myBBOX=-102.92,11.56,-86.37,25.07 &mb_myBBOX=3524000,5679000,3543000,5691000&mb_myBBOXEpsg=EPSG:31467 (from Version 2.6.1) &mb_myBBOXEpsg_transform=EPSG:31467 (from Version 2.7)
Files
For this module the following files are required:
- http://trac.osgeo.org/mapbender/browser/trunk/mapbender/http/javascripts/mod_setBBOX1.php?format=raw
SQL
Use this sql statement to insert this module in the corresponding gui (refer to all maps at target-paramter. List mapframe1 at first):
