add distance legend