This element provides feature info capabilities to Mapbender3. It works for WMS services.
Note: It is possible to load WMS services dynmically into the application Via the information response of a FeatureInfo dialog. The WMS Loader is used for that feature. For further information take a look in the chapter How to add a WMS by defining a link.
With the option “Show Original” the original design of the FeatureInfo Response is used. If the option is deactivated, Mapbender tries to achieve an uniform representation.
Example original:
Example styled:
With the switch “type” the responses of multiple services are displayed either in different tabs or in an accordion.
Example tabs:
Example accordion:
You need a button to show this element. See Button for the general configuration options. The following screen shot shows an example for a FeatureInfo Button which is activated the whole time until the user deactivates it. Another possibility is to close the FeatureInfo dialog, if that is configured with the option “deactivate on close”.
title: FeaureInfo # Titel des Elements
tooltip: Feature Info # text to use as tooltip
type: dialog # Default und mandatory: dialog.
target: map # Id of Map element to query
autoActivate: false # true/false open when application is started, default: false
deactivateOnClose: true # true/false to deactivate the functionality after closing the result dialog, default is true
onlyValid: null # require correct HTML format of response, default: false
printResult: false # offer a link to print the result of the featureInfo, default: false
showOriginal: false # show the css-style of the original feature info result, default: false
displayType: tabs # tabs/accordion Default: tabs
width: 700 # width of the dialog in pixels, default is 700
height: 500 # height of the dialog in pixels, default is 500
None.
Activates the widget which then waits for mouse click on the map and starts the feature info queries.
Deactivates the widget.
None.