A secret map of Ireland's coastline played a crucial role in taking down a powerful alliance of pirates that had based itself in the southwest of Ireland in the 17th century.