Tensions on the vague Maine–New Brunswick boundary involved rival teams of lumberjacks in the bloodless Aroostook War of 1839. There was no shooting but both sides tried to uphold national honor and gain a few more miles of timber land. Each side had an old secret map that apparently showed the other side had the better legal case, so compromise was easily reached in the Webster–Ashburton Treaty of 1842, which settled the border in Maine and Minnesota. In 1859, the bloodless Pig War determined the position of the border in relation to the San Juan Islands and Gulf Islands.