Tooltip
From MapbenderWiki
Tooltip
User:Verena Diewald (Module maintainer)
requires the following modules:
Contents |
Description
english
This module starts a WFS GetFeature and/or a WMS GetFeatureInfo request if the mouse stays on a geometrie object in the mapframe. Results are displayed in a popup ballon.
How To
Add the gui element "tooltip" with the SQL you see below to your gui. To get WMS Get FeatureInfo results at least one layer you want to get information for in the map has to be queryable and element var tooltip_disableWms should be set to 0. To get WFS GetFeature results at least one layer you want to get information for in the map has to be connected to a wfs conf in the WMS Gui Settings, the layer should be queryable and and element var tooltip_disableWfs should be set to 0. Stay on a specific point in the map to start the request (time at which request is started can be defined using element var tooltip_timeDelay). Styling of the results and width and height of the ballon popup can be defined using element vars tooltip_styles, tooltip_width and tooltip_height.
- Target: mapframe1
- JavaScript: mod_tooltip.php
- Modul: popup.js,geometry.js,wfsFilter.js (required modules)
deutsch
Das Modul startet bei ruhender Maus auf einem Geometrieobjekt in der Kartenansicht je nach Konfiguration WFS-GetFeature und/oder WMS-GetFeatureInfo-Abfragen an der Mausposition und zeigt die Ergebnisse, falls vorhanden, in einem Balloon-Popup an.
Anwendung
Gui-Element "tooltip" mit untenstehendem SQL zur gewünschten Gui hinzufügen. Um WMS Get FeatureInfo-Abfragen zu machen, muss mindestens ein Layer, zu dem Informationen angezeigt werden sollen, abfragbar sein und die element var tooltip_disableWms sollte auf 0 gesetzt sein. Um WFS GetFeature-Abfragen zu machen, sollte mindestens ein Layer, zu dem Informationen angezeigt werden sollen, mit einer WFS-Konfiguration in den WMS-Gui-Einstellungen verknüpft und abfragbar sein. Außerdem sollte die element var tooltip_disableWfs auf 0 gesetzt sein. Wenn die Maus auf einem speziellen Punkt in der Karte ruht, wird die Abfrage gestartet (Zeit, nach der der Request gestartet wird, kann über die element var tooltip_timeDelay gesteuert werden). Styling der Ergebnisse und Größe des Ballon Popups können über die element vars tooltip_styles, tooltip_width und tooltip_height gesetzt werden.
- Target: mapframe1
- JavaScript: mod_tooltip.php
- Modul: popup.js,geometry.js,wfsFilter.js (benötigte Untermodule)
Element vars
tooltip_destinationFrame: alternative Frame for results (instead of popup if "") / Alternatives Zielframe für die Ergebnisse (statt popup bei "")
tooltip_noResultArray: Case where FeatureInfo result is not shown / Suchmuster, bei denen das FeatureInfo-Ergebnis nicht angezeigt wird z.B. ["Kein Ergebnis.",'<body onLoad="javascript:window.close()">']
tooltip_styles: Styles for result list of simple WFS request / Styles für die Ergebnisliste der undetaillierten Wfs Abfrage
tooltip_styles_detail: Styles for result list of detailed WFS request / Styles für die Ergebnisliste der detaillierten Wfs Abfrage
tooltip_timeDelay: time in millisecond at which request is started / Zeit in Millisekunden, bis Abfragen angefeuert werden.
wfs_conf_filename: location and name of the WFS configuration file / Speicherort und Name der WFS Konfigurationsdatei
tooltip_width: Width of popup balloon / Breite des Popup-Ballons
tooltip_height: Height of popup balloon / Höhe des Popup-Ballons
tooltip_disableWfs: disable WFS getFeature requests / WFS-GetFeature-Abfrage deaktivieren
tooltip_disableWms: disable WMS getFeatureInfo requests / WMS-GetFeatureInfo-Abfrage deaktivieren
Files
For this module the following files are required / Für dieses Modul werden die folgenden Dateien benötigt:
SQL
Use this sql statement to insert this module in the corresponding gui / Mit diesem SQL das Modul in die entsprechende GUI einfügen:
SQL for module popup / SQL für Popup-Modul
