WMS Get Feature Info Menu - amarong/mapstore GitHub Wiki
WMS Get Feature Info Menu is an alterantive to the WMSGetFeatureInfo tool in mapstore. This tool extends the functionalities of the other tools allowing to choose a new option to query the selected layer on mouse hover.
Enabling this tool and selecting a layer in the layer tree, the user will be able to inspect the informations about the selected layer moving the mouse over the map.
You can easly replace the old tool with this new one changing the ptype gxp_wmsgetfeatureinfo
to gxp_wmsgetfeatureinfo_menu
in the Composer.js
and/or Viewer.js
under mapcomposer/app/static/script/GeoExplorer/
directory.
The configuration is the same of WMSGetFeatureInfo:
- ptype:
"gxp_wmsgetfeatureinfo_menu"
- 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
- 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.
Example:
{
"ptype":"gxp_wmsgetfeatureinfo_menu",
"toggleGroup":"toolGroup",
"closePrevious": true,
"useTabPanel": false,
"loadingMask": true,
"actionTarget":{
"target":"paneltbar",
"index":20
}
}