i m using mapserver .map file in Openlayers. I trying to get featureinfo in
the Openlayers. I tried using the popup example

 info = new OpenLayers.Control.WMSGetFeatureInfo({
      url:
'http://localhost/cgi-bin/mapserv.exe?map=H:/ms4w/Apache/htdocs/Mapfile/test_1.map&;',
      title: 'Identify features by clicking',
      queryVisible: true,
      eventListeners: {
      getfeatureinfo: function(event) {
      map.addPopup(new OpenLayers.Popup.FramedCloud(
      "chicken",
      map.getLonLatFromPixel(event.xy),
      null,
      event.text,
      null,
      true
      ));
      }
      }
      });
      map.addControl(info);
      info.activate();


but it doesn work..
 Could anyone please let me know what are the necessary steps to be done to
getinfo of a label field in openlayers html page.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/OpenLayers-with-mapserver-tp5633817p5633817.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