[OpenLayers-Users] WMSGetFeatureInfo not firing
P Kishor
punk.kish at gmail.com
Sat Sep 19 20:47:57 EDT 2009
I have a bizarre problem that I can't debug. My code is
var info = new OpenLayers.Control.WMSGetFeatureInfo({
url: "http://localhost/cgi-bin/mapserv?map=/path/to/my.map&",
maxFeatures: 12,
title: 'Identify features by clicking',
queryVisible: true,
layers: [wms_cds_stands],
infoFormat: "text/plain",
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud( ... ), true);
}
}
});
map.addControl(info);
info.activate();
If I change the url to "http://localhost/cgi-bin/mapserv" it fires
correctly on click, and a framed cloud pops up with the error message
that CGI variable map is not declared. However, if I add the map
variable to the query string as shown above, then the event doesn't
fire on click at all. There is no proxy nor remote host involved.
Everything is on localhost. Doesn't matter if the url starts with
"http://localhost/cgi-bin//mapserv" or just "/cgi-bin//mapserv", it is
the presence of the url query string that seems to cause the click
event to not fire at all.
What could I do to correct this?
--
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Madison, WI, United States
More information about the Users
mailing list