Hi,
Here are some tips you could check...
1- Make sure the layers are queryable. In your mapfile do you have the 
template defined?
2- define wms_onlineresource, wms_feature_info_mime_type in the 
web-metadata section of your mapfile
3- try not specifying the url parameter in your function
4- I think you have to add the layers to the map before adding the control 
to the map

good luck
steve




durga <[email protected]>@lists.osgeo.org 
Envoyé par : [email protected]
2010-10-14 01:45

A
[email protected]
cc

Objet
[Polluriel potentiel]  [OpenLayers-Users] OpenLayers with mapserver









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



_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to