[OpenLayers-Users] Add extra parameters to getfeatureinfo request
Raul David Orozco
hagen1113 at yahoo.com
Fri Aug 14 10:41:13 EDT 2009
Hi to everyone. I'm using this piece of code to make a getfeatureinfo request:
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'dir/smms/wms.php',
title: 'Identify features by clicking',
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();
And it works fine, I get my info back as I need it, but I have to send some extra parameters with getfeatureinfo request for example ''REPORT":"YES" but I don't know how to do it. Any help will be appreciated, and if everyone can suggest me a better way to do the features request that would be great. Thanks in advance.
____________________________________________________________________________________
¡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/20090814/56ed1f6f/attachment.html
More information about the Users
mailing list