//
// MapPointType Class
// (Fungo's map icon points)
//
var MapPointType = Class.create
({
	initialize: function(id, iconsize, shadow, iconanchor){
		this.id = id;
		
		//
		// sizes
		this.shadowSize = shadow;
		this.iconAnchor = iconanchor;
		this.iconSize =iconsize;
		//
		// Load icon
		this.loadIcon(); 
	},
	
	loadIcon: function()
	{		
		this.icon = new GIcon();
		this.icon.image = "Classes/GUI/JavaScript/lib/MapClasses/icons/"+ this.id +"/image.png";
		this.icon.shadow = "Classes/GUI/JavaScript/lib/MapClasses/icons/"+ this.id +"/shadow.png";
		this.icon.shadowSize = new GSize(54, 44);
		this.icon.imageSize = new GSize(20, 34);
		this.icon.iconAnchor = new GPoint(16, 42);
      	this.icon.infoWindowAnchor = new GPoint(15, 2);
     	this.icon.infoShadowAnchor = new GPoint(18, 25);


		//this.icon.shadow
	}
	
});
