msg="<div>Marker "+index+" (Satellite vs 3D model)</div>";
msg="<div>Marker "+index+" (Satellite vs 3D model)</div>";
vard_map=Data.markers[index].d_map;
vard_map=Data.markers[index].d_map;
vard_x3d=Data.markers[index].d_x3d;
vard_x3d=Data.markers[index].d_x3d;
vard_map_float=parseFloat(d_map);
vard_map_float=parseFloat(d_map);
vard_x3d_float=parseFloat(d_x3d);
vard_x3d_float=parseFloat(d_x3d);
vardelta;
vardelta;
if(isNaN(d_map_float)){
if(isNaN(d_map_float)){
d_map_msg=d_map;
d_map_msg=d_map;
}else{
}else{
d_map_msg=d_map_float.toFixed(1)+" m";
d_map_msg=d_map_float.toFixed(1)+" m";
}
}
if(isNaN(d_x3d_float)){
if(isNaN(d_x3d_float)){
d_x3d_msg=d_x3d;
d_x3d_msg=d_x3d;
}else{
}else{
d_x3d_msg=d_x3d_float.toFixed(1)+" m";
d_x3d_msg=d_x3d_float.toFixed(1)+" m";
}
}
if(!isNaN(d_x3d_float)&&!isNaN(d_map_float)){
if(!isNaN(d_x3d_float)&&!isNaN(d_map_float)){
delta=(d_map_float-d_x3d_float).toFixed(1);
delta=(d_map_float-d_x3d_float).toFixed(1);
}else{
}else{
delta="-";
delta="-";
}
}
msg+="<table>";
msg+="<table>";
msg+="<tr title='drag marker over map to update distance'><th align='left'>d<sub>map</sub></th><td align='left' style='text-align:left;'>"+d_map_msg+"</td></tr>";
msg+="<tr title='drag marker over map to update distance'><th align='left'>d<sub>map</sub></th><td align='left' style='text-align:left;'>"+d_map_msg+"</td></tr>";
msg+="<tr title='drag marker over 3d scene to update distance'><th align='left'>d<sub>3d</sub></th><td align='left' style='text-align:left;'>"+d_x3d_msg+"</td></tr>";
msg+="<tr title='drag marker over 3d scene to update distance'><th align='left'>d<sub>3d</sub></th><td align='left' style='text-align:left;'>"+d_x3d_msg+"</td></tr>";