Cartography of the margin