adding html for direction view, made path width depend on zoom scale