[OpenLayers-Users] WMS getFeatureInfo Popup
Kiks
enrico.oemi at gmail.com
Fri Jul 30 11:04:05 EDT 2010
I followed the OpenLayers dev example "Feature info in popup" to get info
about my Parcels layer, adding these lines to my html working page:
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://"+host+"/mapserverms4w/mapserv.exe',
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
The WMS Server reply correctly if I try a manual request via browser, but if
load the openlayers html page and I click over the layer, nothing happens,
and it seems that the event is ignored.
Any ideas?
Kiks
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-getFeatureInfo-Popup-tp5355333p5355333.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list