define marker style according to polyline style, fixes #2