[OpenLayers-Users] Problems with GetFeatureInfo
Al Zi
zeitalex at googlemail.com
Tue Feb 23 05:21:47 EST 2010
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/04555394/attachment.html
More information about the Users
mailing list