
map.Points = {};

map.Points.items = [];

map.Points.itemKeys = {
	  ID		: 0
	, LAYER_ID	: 1
	, NAME		: 2
	, CONTENT	: 3
	, LINK		: 4
	, POSITION	: 5
};

//---

map.Points.getItem = function(id){
	var index =  map.Points.getIndexById(id);
	return map.Points.items[index];
};

map.Points.getIndexById = function(id){
	for(var i = 0; i < map.Points.items.length; i++){
		if(map.Points.items[i][map.Points.itemKeys.ID] == id){
			return i;
		}
	}
};