I am using my layerswitcher to determine if the layer is on/off based on its
check/uncheck value. When the user checks or unchecks the layer I am either
removing or adding the layer to the WMSGetFeatureInfo control by either
pushing the new layer on.. or using the splice method since
wmsgetfeature.layers is an array of layers. Not sure if this is the best
approach but seems to be working for me as I am using layers for the control
that are visible/not visible sometimes based on if they are checked in the
legend. 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Disable-WMSGetFeatureInfo-for-layers-which-are-currently-not-visible-tp5964206p5964301.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to