WMSGetFeature Info control with configured layer filter.
![]()
Further notes
The WMSGetFeatureInfo control may be configured with a filter. This filter will be applied before the WMSGetFeature Info request is made.
<layerFilter>
<lp:Or>
<predicates>
<llpr:LayerId value="Topography" />
<llpr:LayerId value="Roads" />
<llpr:LayerId value="Borders" />
</predicates>
</lp:Or>
</layerFilter>
In this example the map client displays two layers. One is a single layer named "Borders". The other is a grouped layer containing five
wms layers named "Bathymetry,Topography,Hillshading,Rivers,Roads". If a wms get feature info request is made the control
will filter each layer if the configured predicate matches. It the layer passes this it's used for requestin so in this example
just the layers named "Topography", "Roads" and "Borders" are requested. All others are filtered out even if they have been grouped inside
a group layer.
<lc:WMSGetFeatureInfo>
<infoFormat>text/html</infoFormat>
<hover>false</hover>
<maxFeatures>1</maxFeatures>
<queryVisible>true</queryVisible>
<layerFilter>
<lp:Or>
<predicates>
<llpr:LayerId value="Topography" />
<llpr:LayerId value="Roads" />
<llpr:LayerId value="Borders" />
</predicates>
</lp:Or>
</layerFilter>
</lc:WMSGetFeatureInfo>
![]()
powered by disy Informationssysteme GmbH
