Hello everyone.
I'm working on a project for mapping a postgis layer overlayed o a base
layer like google or open street maps through the mapserver wms service.
i think i have configured in a right way the mapfile of mapserver
becouse if i get the request through the browser and through a gis
client like qgis all the response are positive and the system returned
me all the attributes requested. But the getfeatureinfo function in
openlayer is ignored, firebug doesn't give me any errors and pratically
doesn't happen anything. The layer postgis is correctly displayed on the
map so I think that the error is in the code of the application or in
the configuration of the proxy. I followed the example of openlayer in
http://openlayers.org/dev/examples/getfeatureinfo-popup.html.
the code that's not good is the following:
OpenLayers.ProxyHost = "/usr/lib/cgi-bin/proxy.cgi?url=";
info = new OpenLayers.Control.WMSGetFeatureInfo({
url:
'http://localhost/cgi-bin/mapserv?map=/var/www/pmapper-4.0/config/florawms/pmapper_florawms.map',
title: 'Identify features by clicking',
layers: 'bioitaly',
queryVisible: 'true',
infoFormat:'text/plain',
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
})
map.addControl(info);
info.activate();
I added in the proxy file localhost:80 and localhost:8080
Someone can help me?
Thank you very much
Francesco
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users