if(typeof(featureInfoLayerPopup)==='undefined') var featureInfoLayerPopup = 'false'; if(typeof(featureInfoPopupHeight)==='undefined') var featureInfoPopupHeight = '200'; if(typeof(featureInfoPopupWidth)==='undefined') var featureInfoPopupWidth = '270'; var mod_featureInfo_elName = "featureInfo1"; var mod_featureInfo_frameName = ""; var mod_featureInfo_target = ""; var mod_featureInfo_mapObj = null; var mod_featureInfo_img_on = new Image(); mod_featureInfo_img_on.src = ""; var mod_featureInfo_img_off = new Image(); mod_featureInfo_img_off.src =""; var mod_featureInfo_img_over = new Image(); mod_featureInfo_img_over.src = ""; function init_featureInfo1(ind){ mod_featureInfo_mapObj = getMapObjByName(mod_featureInfo_target); mb_button[ind] = document.getElementById(mod_featureInfo_elName); mb_button[ind].img_over = mod_featureInfo_img_over.src; mb_button[ind].img_on = mod_featureInfo_img_on.src; mb_button[ind].img_off = mod_featureInfo_img_off.src; mb_button[ind].status = 0; mb_button[ind].elName = mod_featureInfo_elName; mb_button[ind].fName = mod_featureInfo_frameName; mb_button[ind].go = new Function ("mod_featureInfo_click()"); mb_button[ind].stop = new Function ("mod_featureInfo_disable()"); } function mod_featureInfo_click(){ mod_featureInfo_mapObj.getDomElement().onclick = mod_featureInfo_event; } function mod_featureInfo_disable(){ mod_featureInfo_mapObj.getDomElement().onclick = null; } function mod_featureInfo_event(e){ var point = mod_featureInfo_mapObj.getMousePos(e); eventBeforeFeatureInfo.trigger({"fName":mod_featureInfo_target}); //TODO that code should go to featureInfo Redirect module if(document.getElementById("FeatureInfoRedirect")){ //fill the frames for(var i=0; i, url:urls[i], width:parseInt(featureInfoPopupWidth, 10), height:parseInt(featureInfoPopupHeight, 10), top:200, left:600 }); } else window.open(urls[i], "" , "width="+featureInfoPopupWidth+",height="+featureInfoPopupHeight+",scrollbars=yes,resizable=yes"); } } else alert(unescape("Please select a layer! \n Bitte waehlen Sie eine Ebene zur Abfrage aus!")); } setFeatureInfoRequest(mod_featureInfo_target,clickX,clickY); }