mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 20:31:51 +02:00
Refactor drawing process.
This commit is contained in:
parent
82859b4ea0
commit
1ea38aab97
4 changed files with 30 additions and 6 deletions
|
@ -73,6 +73,8 @@ def format_frequency(value: str) -> str:
|
|||
|
||||
@dataclass
|
||||
class TextConstructor:
|
||||
"""Constructs map labels out of OpenStreetMap tags."""
|
||||
|
||||
def __init__(self, scheme: Scheme) -> None:
|
||||
self.scheme: Scheme = scheme
|
||||
self.default_color: Color = self.scheme.get_color("text_color")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue