Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Wms get feature info

Riccardo Mari edited this page Feb 14, 2014 · 4 revisions

WMS Get Feature Info is a plugin that adds an OpenLayers WMSGetFeatureInfo button to the toolbar.

Enabling this tool and clicking on the map the user can get information on all WMS active layers.

The information can be displayed in a Popup (the default configuration), or in a Panel set by the user

The configuration is:

  • ptype:"gxp_wmsgetfeatureinfo"
  • toggleGroup: String - the name of the button group mutually exclusive
  • closePrevious: boolean - if true just one popup at time will be shown (only for click). default: true
  • useTabPanel: boolean - get the feature info of the layer in tabs insead of accordion panels (only for click),default: false
  • infoPanelId: string - this is the identifier of the panel where you want to display the features info. If this property is omitted, or if it is left blank, the details are displayed in a pop-up, which is the default setting
  • disableAfterClick: boolean - if true this property allows you to disable control after every click ,default: false
  • loadingMask: boolean - show the loading mask while loading get feature info.only for click) (default:true)
  • actionTarget: Object - info about where to place the tool
  • target String - the id of the component (default: paneltbar)
  • index int - the position inside the target component.
  • authentication: authentication credentials to be used on GetFeatureInfo request (useful in debug mode)
  • user: user name
  • password: user password

Example (information displayed in a Popup):

{
    "ptype":"gxp_wmsgetfeatureinfo",
    "toggleGroup":"toolGroup",
    "closePrevious": true,
    "useTabPanel": false,
    "infoPanelId": "",
    "disableAfterClick": false,
    "loadingMask": true,
    "actionTarget":{
        "target":"paneltbar",
        "index":20
    }
}

Example (information displayed in a Panel):

"customPanels":[
    {
        "xtype": "panel",
        "iconCls": "getfeatureinfo-icon",
        "border": false,
        "id": "infoPanel",
        "region": "east",
        "layout": "fit",
        "split":true,
        "width": 400,
        "collapsed": true,
        "collapsible": true,
        "header": true
    }
]

"customTools":[
    {
        "ptype":"gxp_wmsgetfeatureinfo",
        "toggleGroup":"toolGroup",
        "closePrevious": true,
        "useTabPanel": false,
        "infoPanelId": "infoPanel",
        "disableAfterClick": false,
        "loadingMask": true,
        "actionTarget":{
            "target":"paneltbar",
            "index":20
        }
    }
]
Clone this wiki locally