diff --git a/map_machine/mapper.py b/map_machine/mapper.py index 6b978bc..8f1490c 100644 --- a/map_machine/mapper.py +++ b/map_machine/mapper.py @@ -257,9 +257,7 @@ def ui(arguments: argparse.Namespace) -> None: ) size: np.ndarray = flinger.size - svg: svgwrite.Drawing = svgwrite.Drawing( - arguments.output_file_name, size=size - ) + svg: svgwrite.Drawing = svgwrite.Drawing(arguments.output_file_name, size) icon_extractor: ShapeExtractor = ShapeExtractor( workspace.ICONS_PATH, workspace.ICONS_CONFIG_PATH ) diff --git a/map_machine/road.py b/map_machine/road.py index 781968b..cfb8df8 100644 --- a/map_machine/road.py +++ b/map_machine/road.py @@ -431,6 +431,9 @@ class Road(Tagged): width = self.matcher.default_width if extra_width and self.tags.get("bridge") == "yes": color = Color("#666666") + if extra_width and self.tags.get("embankment") == "yes": + color = Color("#666666") + width += 4 scale: float = flinger.get_scale(self.nodes[0].coordinates) path_commands: str = self.line.get_path() path: Path = Path(d=path_commands) @@ -441,6 +444,8 @@ class Road(Tagged): "stroke-linejoin": "round", "stroke-width": scale * width + extra_width, } + if extra_width and self.tags.get("embankment") == "yes": + style["stroke-dasharray"] = "1,3" path.update(style) svg.add(path)