mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-22 13:36:26 +02:00
Fix road layers.
Draw roads layer by layer.
This commit is contained in:
parent
748b252d1e
commit
15466cb74c
3 changed files with 28 additions and 10 deletions
|
@ -287,6 +287,12 @@ class RoadMatcher(Matcher):
|
|||
if "priority" in structure:
|
||||
self.priority = structure["priority"]
|
||||
|
||||
def get_priority(self, tags: dict[str, str]) -> float:
|
||||
layer: float = 0
|
||||
if "layer" in tags:
|
||||
layer = float(tags.get("layer"))
|
||||
return 1000 * layer + self.priority
|
||||
|
||||
|
||||
class Scheme:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue