1){ echo "alert('copyright: ID not unique!');";}
echo "var mod_getArea_target = '".$e_target."';";
?>
var mod_getArea_img = new Image();
mod_getArea_img.src = "../img/button_gray/getArea_off.gif";
register_measureSubFunctions("mod_getArea()");
function mod_getArea(){
var str = "
![]("+mod_getArea_img.src+")
";
return str;
}
function mod_getArea_go(){
if(mod_measure_RX[mod_measure_RX.length -1] == mod_measure_RX[0] && mod_measure_RY[mod_measure_RY.length -1] == mod_measure_RY[0]){
var ind = getMapObjIndexByName(mod_getArea_target);
var url = "../php/mod_evalArea.php?x=";
for(var i=0; i0){ url += ",";}
url += mod_measure_RX[i];
}
url += "&y=";
for(var i=0; i0){ url += ",";}
url += mod_measure_RY[i];
}
var srs = mb_mapObj[ind].epsg.split(":");
url += "&srs="+ escape(srs[1]);
url += "&length=" + mod_measure_TotalDist[mod_measure_TotalDist.length-1];
url += "&distance=" + mod_measure_TotalDist[mod_measure_TotalDist.length-2];
if(!mod_measure_win || mod_measure_win == null || mod_measure_win.closed == true){
mod_measure_win = window.open(url,"mod_measure_win","width=200,height=150,resizable=yes");
}
else{
mod_measure_win.document.location.href = url;
}
mod_measure_win.focus();
}
else{
if(!mod_measure_win || mod_measure_win == null || mod_measure_win.closed == true){
mod_measure_win = window.open("","mod_measure_win","width=200,height=150,resizable=yes");
mod_measure_win.document.open("text/html");
mod_measure_win.document.write("Strecke: " +mod_measure_TotalDist[mod_measure_TotalDist.length-1]+" m");
mod_measure_win.document.close();
}
else{
mod_measure_win.document.open("text/html");
mod_measure_win.document.write("Strecke: " +mod_measure_TotalDist[mod_measure_TotalDist.length-1]+" m");
mod_measure_win.document.close();
}
mod_measure_win.focus();
}
}