//
// MapPointType Class
// (Fungo's map icon points)
//

//var baseIconPath = 

var MapPointType = Class.create
({
	initialize: function(id, iconsize, shadow, iconanchor, infoWindowAnchor, infoShadowAnchor){
		this.id = id;
		
		//
		// sizes
		this.shadowSize = shadow;
		this.iconAnchor = iconanchor;
		this.iconSize = iconsize;
		this.infoWindowAnchor = infoWindowAnchor;
		this.infoShadowAnchor = infoShadowAnchor;
		//
		// Load icon
		this.loadIcon(); 
	},
	
	loadIcon: function()
	{		

		this.icon=new GIcon();
		this.icon.image = "Contents/mapicons/"+ this.id +"/image.png";
		this.icon.shadow = "Contents/mapicons/"+ this.id +"/shadow.png";
		this.icon.iconSize = this.iconSize;
		this.icon.shadowSize = this.shadowSize;
		this.icon.imageSize = this.iconSize;
		this.icon.iconAnchor = this.iconAnchor;
      	this.icon.infoWindowAnchor = this.infoWindowAnchor;
     	//this.icon.infoShadowAnchor = this.infoShadowAnchor;

		//this.icon.shadow
	}
	
});
