[OpenLayers-Trac] [OpenLayers] #3549: WMSGetFeatureInfo.js mod to avoid unqueryable layer polluting results

OpenLayers trac-20090302 at openlayers.org
Wed Oct 12 05:11:53 EDT 2011


#3549: WMSGetFeatureInfo.js mod to avoid unqueryable layer polluting results
-----------------------------------------+----------------------------------
 Reporter:  docg                         |       Owner:              
     Type:  feature                      |      Status:  new         
 Priority:  minor                        |   Milestone:  2.11 Release
Component:  Control.WMSGetFeatureInfo    |     Version:  2.11        
 Keywords:  Unqueryable layers to avoid  |       State:              
-----------------------------------------+----------------------------------
 If one send a getFeatureInfo request containing one layer that is defined
 as Unqueriable, the WMS result returned is empty, even not answering for
 queryable layers.

 One could easily skip the getFeatureInfo for the non queryable layers in
 the request.

 This could be done in the findLayers function, by adding an &&
 (layer.queryable == true) condition at the if (...) line 303 (OL 2.11).

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3549>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list