
/*
* having the id, we get this record
*/
function getSingleLocation() {
	
	//having the id, get the record
	var facilityInfo = new MQRecordSet();
	var ids = new MQStringCollection();
	
	//Retrieve record set for each id in the results
	var fields = new MQStringCollection();
	
	dbLayerQuery.setExtraCriteria("RecordId = " + mqRecordId);
	
	searchExec.getRecordInfo(fields, dbLayerQuery, facilityInfo, ids);
	
	var facilityName = facilityInfo.getField('N');
	     
    var myMap = new MQA.TileMap(document.getElementById('mapDiv'),10,new MQA.LatLng(facilityInfo.getField("Lat"),facilityInfo.getField("Lng")),"default");
    
    var newCenterLL = new MQA.LatLng(facilityInfo.getField("Lat"),facilityInfo.getField("Lng"));
	myMap.setCenter(newCenterLL); 
	
	myZControl = new MQA.ZoomControl;
	//tell the map to display the control we just attached
	myMap.addControl(myZControl);
	
	//Create a map view type control
    //myVControl = new MQA.ViewControl(myMap);
    /*
    Display control - use the Corner placement constant to specify
    which corner, plus an MQA.Size object to specify X and Y "indent"
    offset
    */
    //myMap.addControl(myVControl, new MQA.MapCornerPlacement(MQA.MapCorner.BOTTOM_RIGHT, new MQA.Size(-7,7)));
	
	
   	poi = new MQA.Poi(newCenterLL);
	poi.setValue('infoTitleHTML',facilityName);
	//display address, driving link set in calling page
	var infoContent = displayAddress + "<br/>" + drivingLink;
	poi.setValue('infoContentHTML',infoContent);
	myMap.addShape(poi);	
	
}
