mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-29 02:08:03 +02:00
Make credits optional.
This commit is contained in:
parent
c76e1f0301
commit
7e2d9ba5af
2 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue