[OpenLayers-Users] RE: WMS getFeatureInfo not throwing query requests

Juan Jesús Cremades Monserrat relicary at gmail.com
Wed Jan 11 07:34:31 EST 2012


Hi solve it!

To avoid this error it's important add the 'vendorParams' like this example:

info = new OpenLayers.Control.WMSGetFeatureInfo(
  {url: 'http://localhost:9000/cgi-bin/mapserv.exe',
   title: 'Identify features by clicking',
   layers: [Layer1, Layer2],
   queryVisible: true,
   *vendorParams: {map: '/ms4w/apps/mapserv-demo/mapfile.map'}*,
   eventListeners: {'getfeatureinfo': function(event) {
                                                     map.addPopup(new
OpenLayers.Popup.FramedCloud("chiken",


map.getLonLatFromPixel(event.xy),
   null,
  event.text,

                                                      null,
   true));}});
  map.addControl(info);
   info.activate();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120111/0522a480/attachment.html


More information about the Users mailing list