Ok Gregor figured this out for me:
What is needed is a event listener for
beforegetfeatureinfo
The stuff I was trying was way to late in the sequence of events...
see below
// id control
var info = new OpenLayers.Control.WMSGetFeatureInfo({
url:
'/cgi-bin/mapserv564agg?map=/var/www/mapdata/projects/calipc/ca_base_v2.map',
title: 'Identify features by clicking',
queryVisible: true,
layers: [observations],
eventListeners: {
beforegetfeatureinfo: function(event) {
this.vendorParams = { INFOSQL:obquerystring1 };
},
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"manzana",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users