diff --git a/map_machine/map_configuration.py b/map_machine/map_configuration.py index 09aebd6..e49f08b 100644 --- a/map_machine/map_configuration.py +++ b/map_machine/map_configuration.py @@ -60,6 +60,7 @@ class MapConfiguration: use_building_colors: bool = False show_overlapped: bool = False credit: Optional[str] = "© OpenStreetMap contributors" + show_credit: bool = True @classmethod def from_options( diff --git a/map_machine/mapper.py b/map_machine/mapper.py index a1f64cf..cbce070 100644 --- a/map_machine/mapper.py +++ b/map_machine/mapper.py @@ -130,7 +130,8 @@ class Map: self.svg, occupied, self.configuration.label_mode ) - self.draw_credits(constructor.flinger.size) + if self.configuration.show_credit: + self.draw_credits(constructor.flinger.size) def draw_buildings(self, constructor: Constructor) -> None: """Draw buildings: shade, walls, and roof."""