[Users] WMSGetFeatureInfo-Popup remains empty
Kai Volland
kaivolland at web.de
Tue Feb 1 14:31:38 CET 2011
Hi,
i have a problem with WMSGetFeatureInfo. I want to show the response
from the geoserver in a popup-window.
CODE:
/ var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://sfb806srv.uni-koeln.de:8080/geoserver/wms',
title: 'Info:',
maxFeatures: 1,
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event){
//if( event.text != "\n" && event.text != "") {
new GeoExt.Popup({ //utilizing the GeoExt
popup functionality
title: "Info",
autoScroll: true,
map: map,
maximizable: false,
collapsible: false,
unpinnable: false,
anchored: false,
location: map.getLonLatFromPixel(event.xy),
html: event.text
}).show();
//}
}
}
});
map.addControl(featureInfo);
featureInfo.activate();/
A Popopup shows up, but its empty:
*Firebug:*
*Params:*
BBOX |-5023788.344356,1424785.721383,10806625.958781,9975948.94817|
FEATURE_COUNT |1|
FORMAT |image/png|
HEIGHT |437|
INFO_FORMAT |text/html|
LAYERS |SFB806DB:Pfeile|
QUERY_LAYERS |SFB806DB:Pfeile|
REQUEST |GetFeatureInfo|
SERVICE |WMS|
SRS |EPSG:900913|
STYLES
VERSION |1.1.1|
WIDTH |809|
X |278|
Y |224|
*Header:*
Antwort-HeaderQuelltext anzeigen
Server |Apache-Coyote/1.1|
Content-Encoding |gzip|
Content-Type |text/html;charset=UTF-8|
Content-Length |391|
Date |Tue, 01 Feb 2011 13:29:00 GMT|
Anfrage-HeaderQuelltext anzeigen
Host |sfb806srv.uni-koeln.de:8080|
User-Agent |Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13|
Accept |text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|
Accept-Language |de-de,de;q=0.8,en-us;q=0.5,en;q=0.3|
Accept-Encoding |gzip,deflate|
Accept-Charset |ISO-8859-1,utf-8;q=0.7,*;q=0.7|
Keep-Alive |115|
Connection |keep-alive|
Referer |http://localhost/webgis/webgis.html|
Origin |http://localhost|
*Response and HTML are empty.*
Some hints refered me to things like proxy.cgi and stuff. But all this
didn't helped me.
Why do the popup remains empty and how to fix it? Is it because i'm
runnig it local?
Kind regards
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110201/67442d7b/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.JPG
Type: image/jpeg
Size: 13780 bytes
Desc: not available
Url : http://www.geoext.org/pipermail/users/attachments/20110201/67442d7b/attachment-0001.jpeg
More information about the Users
mailing list