[OpenLayers-Users] OPENLAYERS FEATURE POPUP TROUBLE

slohamanoj gis.slokam at gmail.com
Mon May 28 04:35:37 PDT 2012


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.


More information about the Users mailing list