function getNewTMXRenderer(map) {
	switch (map.orientation) {
		case "orthogonal":
			return new TMXOrthogonalRenderer(map);

		case "isometric":
			return new TMXIsometricRenderer(map);

		case "hexagonal":
			return new TMXHexagonalRenderer(map);

		case "staggered":
			return new TMXStaggeredRenderer(map);

		// if none found, throw an exception
		default:
			throw new Error(map.orientation + " type TMX Tile Map not supported!");
	}
}
return a compatible renderer object for the given map
@param {TMXTileMap} map
@ignore