[OpenLayers-Users] GetFeatureInfo multiple layers
Nina Helle-Mildt
helle at sdac.hannover.bgr.de
Thu Sep 25 03:59:30 EDT 2008
Hey there,
so far I've been able to query one overlay layer, following the Feature
Info Example on the OpenLayers homepage. Now I'm trying to query all
existing overlay layers - but with little success.
What is wrong about my code?
map.events.register('click',findLayerClick);
function findLayerClick(event) {
layerlist = "seis,seis_ger";
OpenLayers.Util.getElement('nodeList').innerHTML = "Einen Moment bitte ...";
var url = map.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: map.getExtent().toBBOX(),
X: event.xy.x,
Y: event.xy.y,
INFO_FORMAT: 'text/html',
WIDTH: map.size.w,
HEIGHT: map.size.h},
"http://www.seismologie.bgr.de:8080/cgi-bin/mapserv?");
OpenLayers.loadURL(url, '', this, setHTML);
Event.stop(event);
}
function setHTML(response) {
OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;}
Thanks in advance!
Nina
More information about the Users
mailing list