/*

	
Usage:

//load the script:
<script src="js/getMarkers0.1.js">

//setup the method for a given map:
setupGetMarkers(map);
*/

function setupGetMarkers(map) {
	if(typeof(map.getMarkers) == 'function')
		return;

	setupGetOverlays(map);
	map.getMarkers = function() {
		var o = this.getOverlays();
		var m = [];
		for(var i = 0; i < o.length; i++)
			if(typeof(o[i].getIcon) == 'function')
				m.push(o[i]);
		return m;
	};
}
setupGetMarkers.version = 0.1;
