
// highlight a single point on a map
// needs to have an input element to reference 
// calling image
// show_loc += "<img  id='show_point1' class='show_point' src='"+AD.getImageFolder()+"mapsymbols/show_point.gif' />";

function getShowPointImageID(){return 'show_point';}

function setShowPoint(lon,lat,description){

   var object_map = getMap(); 
  
   var point = getShowPoint(); 

   var img_x = parseInt(RX2BX( lon ,object_map));

   var img_y = parseInt(RY2BY( lat,object_map ));

   // set the point position
  
   point.style.left=img_x +'px';
   point.style.top=img_y +'px';
   point.title=description;

   // check if point is in or out of image area
   if(isInMap(point,object_map)){

     setVisibility(point,true);     
   }else{

     setVisibility(point,false);
   }

   return;
}

function getShowPoint(){
  var pointer;
  try{
	  
    pointer = document.getElementById(getShowPointImageID());

	if(!pointer){throw 'getShowPointPoint(): ShowPointPoint is not available';}
  } catch(err){alert('getShowPointPoint(): ShowPointPoint is not available ' + err);}

  return pointer;
}




