Routemap: Support auto creation of a legend. And fix minimumTransfers() bug.