Hi, i looked at the CIA Factbook page and tried that for my application and it works so far for my umn wms layers.
The problem is i also use kamap layers and like to get getFeatureInfo available for them too. Maybe anyone know how to modify the sourcecode to show the information for the kamap layers. hereĀ“s the getFeatureInfo section of my application: ---- function checkinfo(imgid,url,title){ if (infobox == 0) {infobox = 1;} if (imgid == oldimgid) {infobox = 0;} id = imgid.substring(3,imgid.length); if(infobox == 1 && document.getElementById(id).checked==true) { document.getElementById('map').style.cursor = 'crosshair'; document.getElementById(imgid).src = "img/treemenu/identify_2.gif"; if (oldimgid != null) document.getElementById(oldimgid).src = "img/treemenu/identify_1.gif"; oldimgid = imgid; document.getElementById('nodeList').style.visibility = 'visible'; map.events.register('click', map, function (e) { if(infobox == 1 && document.getElementById(id).checked==true) { document.getElementById('map').style.cursor = 'crosshair'; OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait..."; var request = window[id].getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: window[id].map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: window[id].params.LAYERS, WIDTH: window[id].map.size.w, HEIGHT: window[id].map.size.h}); OpenLayers.loadURL(request, '', this, setHTML); OpenLayers.Event.stop(e); } }); } else { document.getElementById('map').style.cursor = 'auto'; document.getElementById('nodeList').style.visibility = 'hidden'; if (imgid == oldimgid) { oldimgid = null; } else { oldimgid = imgid; } document.getElementById('nodeList').innerHTML = ""; infobox = 0; document.getElementById(imgid).src = "img/treemenu/identify_1.gif"; } } hope someone can point me to a solution. regards R. Ortner -- View this message in context: http://www.nabble.com/getFeatureInfo-for-ka-map-layer-tf4880838.html#a13968117 Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users