Edit distancemarkers

Fix of previous PR as well as styling.