[OpenLayers-Users] GetFeatureInfo Problem in Mozilla and Firefox,
but works in IE
magarbikram
magar.bik at gmail.com
Tue Jul 26 08:57:24 EDT 2011
Hi to all,
I have spent a lot of time working on wmsgetfeatureInfo to work on Mozilla
firefox and chrome. The following code runs in IE but not in two other
browsers.
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://184.168.114.197:8080/geoserver/REP_NEPAL_LIVE/wms',
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
));
}
}
});
map.addControl(info);
info.activate();
In the above example, event.text is blank in Mozilla(firefox) and chrome,
but there is data in IE, Please help me
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GetFeatureInfo-Problem-in-Mozilla-and-Firefox-but-works-in-IE-tp6622093p6622093.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list