[OpenLayers-Users] Need help with getfeatureinfo

Raul David Orozco hagen1113 at yahoo.com
Thu Sep 3 16:46:47 EDT 2009


Hi, I've dealing with a problem that I can't solve, I just need to add extra parameters to a getfeaturinfo request, for example color: 'yellow', and I need that parameters to be sent with the request. The code I´m using for the request is below:

info = new OpenLayers.Control.WMSGetFeatureInfo({
            url: 'dir/smms/wms.php',
            title: 'Identify features by clicking',
   other: 'eso',
            queryVisible: true,
   eventListeners: {
                getfeatureinfo: function(event) {
                     map.addPopup(new OpenLayers.Popup.FramedCloud(
                        "myagri", 
                        map.getLonLatFromPixel(event.xy),
                        null,
                        event.text,
                        null,
                        true
                    ));
                }
   }
        });
  map.addControl(info);
        info.activate();

Thanx for your help, and long life to OL.


      ____________________________________________________________________________________
¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8. 
http://downloads.yahoo.com/ieak8/?l=e1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090903/67136f3a/attachment.html


More information about the Users mailing list