[OpenLayers-Trac] [OpenLayers] #3176: WMSGetFeatureInfo Control
does not allow for different infoFormats per layer
OpenLayers
trac-20090302 at openlayers.org
Fri Mar 18 08:12:12 EDT 2011
#3176: WMSGetFeatureInfo Control does not allow for different infoFormats per
layer
---------------------------------------+------------------------------------
Reporter: bartvde | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Control.WMSGetFeatureInfo | Version: 2.10
Keywords: | State:
---------------------------------------+------------------------------------
The way !OpenLayers.Control.WMSGetFeatureInfo is currently setup is a bit
inflexible, it has an infoFormat property, which will be used for all WMS
GetFeatureInfo requests. When drillDown is true, layers from different WMS
servers will be touched, and they might not allow for one common mime type
for GetFeatureInfo.
I would suggest the ability to override the infoFormat on a layer basis,
e.g. by checking if the layer has a params called INFO_FORMAT, and if so,
use that one instead of this.infoFormat.
--
Ticket URL: <http://trac.openlayers.org/ticket/3176>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list