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
));
}
}
});
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/update-vendorParams-for-WMSGetFeatureInfo-tp5876137p5877593.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