Template:Parameter
From MapbenderWiki
Contents |
Parameter
EN
Normally a module consists of a file in which the funcionality of Javascript or PHP is implemented and parameters which are implemented in a GUI with a form in the Mapbender administration database.
Notice: Modules, which are only layout elements of a GUI, have no other functionality and refer for that reason to no other scripts.
For Mapbender2 is primary a DHTML-application, the parameters orientate to the single modules on the HTML-syntax.
Parameters of a module:
| ID | The id of a module has to be unique in a GUI and shouldn't contain any special characters. | |
| POSITION | The position of a module has to be higher than the position of the module 'body' of the same GUI (as a rule > 1). The position affects the loading sequence of Mapbender. | |
| PUBLIC | "0" - Module is deactivated, "1" - Module is activated | |
| COMMENT | A short description of the module to make the administration of the module more clearly. | |
| HTML-TAG | HTML-TAG, to integrate the module into the application | |
| SRC | If necessary insert a source, e.g. for images which should be included for buttons. The keyword sessionID is exchanged in each case with the current SessionID. | |
| ATTRIBUTES | Attributes, which a HTML-TAG may contain. The keyword sessionID is exchanged in each case with the current SessionID. | |
| LEFT | Position of the elements in the GUI (count from the left in pixel). | |
| TOP | Position of the elements in the GUI (count from above in pixel). | |
| WIDTH | Width (Pixel) | |
| HEIGHT | Height (Pixel) | |
| Z-INDEX | Layering, elements with a higher z-index overlay the elements with a lower z-index. | |
| STYLES | Additional stylesheets. | |
| CONTENT | Content of an element, which is displayed in the GUI. | |
| CLOSE-TAG | Maybe a TAG to close the HTML-elements. | |
| JAVASCRIPT | A !JavaScript-file, which provides the functionality. | |
| MODUL | A !JavaScript, which can be used by several elements (modules), but should be loaded only once. | |
| TARGET | The target of a module. The target of the ZOOM-BUTTONS (module) are e.g. the main map frame in the GUI1. | |
| REQUIRES | Dependecies, refer the module, which is required by this module. |
DE
Ein Modul besteht in der Regel aus einer Datei, in der die Funktionalität in JavaScript oder PHP implementiert ist und Parametern, die beim Bestücken einer Oberfläche (GUI) über ein Formular in der Mapbender Administrationsdatenbank eingetragen werden.
Hinweis: Module, die lediglich Layoutelemente einer Oberfläche sind, haben keine weitere Funktionalität und verweisen daher auch auf keine weiteren Skripte.
Da Mapbender2 in erster Linie eine DHTML-Anwendung ist, orientieren sich die Parametern zu den einzelnen Modulen an der HTML-Syntax.
Parameter eines Moduls:
| ID | Die ID eines Moduls muss in einer Oberfläche eindeutig sein und sollte keine Sonderzeichen enthalten. | |
| POSITION | Die Position eines Moduls muss höher sein, als die des Moduls body derselben Oberfläche (i.d.R.>1). Mit der Position kann das Ladeverhalten des Mapbenders beeinflusst werden. | |
| PUBLIC | "0" - Modul ist deaktiviert, "1" - Modul ist aktiv | |
| COMMENT | Eine kurze Beschreibung des Moduls, um die Verwaltung der Module über- sichtlicher zu gestalten. | |
| HTML-TAG | HTML-TAG, mit dem das Modul in die Anwendung integriert wird. | |
| SRC | Ggf. eine Quelle, z.B. bei Bildern, die als Button eingebunden werden soll.Das Schlüsselwort sessionID wird durch die jeweils aktuelle SessionID ausgetauscht. | |
| ATTRIBUTES | Attribute, die das HTML-TAG enthalten kann. Das Schlüsselwort sessionID wird durch die jeweils aktuelle SessionID ausgetauscht. | |
| LEFT | Position des Elements in der Oberfläche von links (Pixel). | |
| TOP | Position des Elements in der Oberfläche von oben (Pixel). | |
| WIDTH | Breite (Pixel) | |
| HEIGHT | Höhe (Pixel) | |
| Z-INDEX | Schichtung, Elemente mit höherem z-index überdecken Elemente mit geringerem z-index. | |
| STYLES | Zusätzliche stylesheets. | |
| CONTENT | Inhalt eines Elements, das in der Oberfläche angezeigt wird. | |
| CLOSE-TAG | Ggf. ein TAG zum Schließen des HTML-Elements. | |
| JAVASCRIPT | Eine !JavaScript-Datei, die Funktionalität bereitstellt. | |
| MODUL | Ein !JavaScript, das von mehreren Elementen (Modulen) genutzt werden kann, aber nur einmal geladen werden soll. | |
| TARGET | Das Ziel eines Moduls. Das Hauptkartenfenster ist z.B. ein Ziel des ZOOM-BUTTONS (Modul) in der gui1. | |
| REQUIRES | Abhängigkeiten, benennt das Modul, welches von diesem Modul benötigt wird. |

