[OpenLayers-Users] Problems with GetFeatureInfo
Vince Lotito
vince at vvl.com
Tue Feb 23 06:40:55 EST 2010
It sounds like a security issue. Are your web page/scripts being served from http://hboard.iwk.uni-karlsruhe.de:8080<http://hboard.iwk.uni-karlsruhe.de:8080/>? If you are not then your HTTP response will be blank.
Kind Regards
Vince
________________________________
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Al Zi
Sent: Tuesday, February 23, 2010 5:22 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] Problems with GetFeatureInfo
Dear All,
OpenLayers used together with geoserver 2, tomcat6, Sun Java 6 on Ubuntu server 64 bit.
while trying to use GetFeatureInfo following problems appear:
1) if using GetFeatureInfo like this:
map.events.register('click', map, function (e) {
document.getElementById('nodelist').innerHTML = "Loading ... please wait ...";
var params = {
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: map.layers[0].params.LAYERS,
FEATURE_COUNT: 50,
Srs: 'EPSG:32638',
Layers: 'Moskva',
Styles: '',
WIDTH: map.size.w,
HEIGHT: map.size.h,
format: format};
OpenLayers.loadURL("http://hboard.iwk.uni-karlsruhe.de:8080/geoserver/wms", params, this, setHTML, setHTML);
// window.open("http://hboard.iwk.uni-karlsruhe.de:8080/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=Moskva&styles=&bbox=-125830.05,6099218.02,153008.285,6277080.521&width=517&height=330&srs=EPSG:32638&format=application/openlayers");
OpenLayers.Event.stop(e);
});
}
// sets the HTML provided into the nodelist element
function setHTML(response){
document.getElementById('nodelist').innerHTML = response.responseText;
}
clicking on maps brings up "Loading ... please wait ..." message only and nothing else.
2) if using in a way as described in http://trac.openlayers.org/wiki/GetFeatureInfo nothing happens at all.
3) I tried to save OpenLayers html provided by geoserver locally and it does not work as well. "Loading ... please wait ..." message appears for a short time then disappears and nothing happens
Any help would be highly appreciated.
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100223/5c0b6cf7/attachment.html
More information about the Users
mailing list