Can this be done? I am trying to only make certain layers show the
WMSGetFeatureInfo using the below code. It works well but it shows a popup
window with every single layer found below my mouse click. Is it possible to
show only specific layers instead of all? Thanks for assistance!

[code]
 var hotspot_info = new OpenLayers.Control.WMSGetFeatureInfo({
            url: 'http://ITS701X5J1/RedgisWMS/Request.aspx', 
            title: 'Identify features by clicking',
            queryVisible: true,
            eventListeners: {
                getfeatureinfo: function(event) {
                    map.addPopup(new OpenLayers.Popup.FramedCloud(
                        "featurePopup", 
                        map.getLonLatFromPixel(event.xy),
                        null,
                        event.text,
                        null,
                        true
                    ));
                }
            }
        });
        map.addControl(hotspot_info);
        hotspot_info.activate();

[/code]
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Question-on-ommitting-a-layer-so-that-WMSGetFeature-ignores-it-tp5508448p5508448.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