How to do a getfeatureinfo request for multiple layers?
How to do a getfeatureinfo request for multiple layers?
To do a GetFeatureInfo request for multiple layers you need to list all those layers you want information on in the QUERY_LAYERS& parameter. In this the GetMap request is based on the GBR_BGS_625k_BLS layer LAYERS=GBR_BGS_625k_BLS& and the GetFeatureInfo request queries for information on the same layer QUERY_LAYERS=GBR_BGS_625k_BLS&
What is the latest version of OpenLayers?
This example uses OpenLayers v 6.6.1. The latest is v 6.6.1 . This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.
How to get feature information for multiple layers in a list?
As mentioned by @user30184 in comments the important parameter here is QUERY_LAYERS& To do a GetFeatureInfo request for multiple layers you need to list all those layers you want information on in the QUERY_LAYERS& parameter.
What is the difference between base layers and overlays?
Layers are the ‘datasources’ in OpenLayers 2. OpenLayers 2 has two types of layers when operating in your application: base layers and overlays. This difference controls several aspects of how you interact with an OpenLayers 2 Map. Base Layers are mutually exclusive layers, meaning only one can be enabled at any given time.
What is the latest version of WMS getfeatureinfo?
The latest is v 6.6.1 . Demonstrates the use of the layers option in the ol/format/WMSGetFeatureInfo format object, which allows features returned by a single WMS GetFeatureInfo request that asks for more than one layer to be read by layer name.
What is the difference between getfeatureinfo and getmap?
You don’t have to query the layer that is used to generate the GetMap request even, so GetMap is based on GBR_BGS_625k_BLS, but GetFeatureInfo is for GBR_BGS_625k_SLT and GBR_BGS_625k_BLT