Hi Imran ,

Solved the Issues related to GetFeatureInfo for one Particular layer.

code goes below:
var info;

listeners: {
                    "radiochange": function(node) {
                                                info.layers=node.layer;
                    }
                }

info = new OpenLayers.Control.WMSGetFeatureInfo({
                        url: 'http://90.0.0.129:8090/geoserver/wms', 
                        title: 'Identify features by clicking',
                        queryVisible: true,
                        eventListeners: {
                                        getfeatureinfo: function(event) {
                                                        
mapPanel.map.addPopup(new
OpenLayers.Popup.FramedCloud(
                                                        "Info.,", 
                                                        
mapPanel.map.getLonLatFromPixel(event.xy),
                                                        null,
                                                        event.text,
                                                        null,
                                                        true
                    ));
                }
            },
        });

This solves the problem and produces the output!!!!

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/OPENLAYERS-FEATURE-POPUP-TROUBLE-tp4975832p4977381.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