/*
 * Implementation of Marker controller
 */
var MarkerManager = function() {

	var _iconDir = 'img/ipoints/'	
    var self = this;
    var markerCache = new JSCache();    
    
	this.add = function(options, point, icon, type) {
		icon = _iconDir + icon;
		
		if (!markerCache.get(options.id)) {
			var marker = map.createMarker(options, point, icon, type, options.type.number);
			marker.show();						
			markerCache.add(options.id, marker);			
		}		
    }
    
    this.clearAll = function() {
    	markerCache.clear();
    	map.clearLayers();
    }
    
    this.hideType = function(type) {
    	map.hideLayer(type);    	
    }
    
    this.showType = function(type) {
    	map.showLayer(type);    	
    }

}

/*
 * CMarker Interface
 */
var CMarker = function() {

	this.hide = function() {
	}
	 
	this.show = function() {
	}

	this.plot = function() {
	}
	
	this.getId = function() {	
	}	
	
	this.getName = function() {	
	}
	
	this.getType = function() {	
	}
	
	this.getDescription = function() {	
	}
	
	this.getPoint = function() {
	}
			 
}