// support GetFeatureInfo map.events.register('click', map, function (e) { document.getElementById('nodelist').innerHTML = "Loading... please wait..."; var url = map.layers[0].getFullRequestString( { 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, WIDTH: map.size.w, HEIGHT: map.size.h }, "http://localhost:8080/geoserver/wms" ); OpenLayers.loadURL(url, '', this, setHTML, setHTML); OpenLayers.Event.stop(e); }); }