always layer places in front
refactor legend to use css-based styling