/////////////////////////////////////////////////////
//Mapping
//Morgan Lynch, Strata3
//07/06/07 
/////////////////////////////////////////////////////

var map = null; 
var shapeLayer1= null;
var pinid = 0; 
 
/////////////////////////////////////////////////////               
function GetMap(lat,lon,zoom,type,panel_title,panel_text,icon_image){
	map = new VEMap('myMap');
	map.SetDashboardSize(VEDashboardSize.Tiny);
	//map.ShowMiniMap();
	map.LoadMap(new VELatLong(lat,lon), zoom ,type ,false);
	shapeLayer1= new VEShapeLayer();
	AddPushpin(panel_title,panel_text,icon_image);
	map.AddShapeLayer(shapeLayer1);
	
}
/////////////////////////////////////////////////////
function AddPushpin(panel_title,panel_text,icon_image){     
	  	var shape = new VEShape(VEShapeType.Pushpin, map.GetCenter());
		shape.SetTitle(panel_title);
		shape.SetDescription(panel_text);
		shape.SetCustomIcon(icon_image);
		shapeLayer1.AddShape(shape);
		pinid++;
} 

