mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 18:31:53 +02:00
Add groups to icon configuration.
This commit is contained in:
parent
5a9760f618
commit
c005dcc423
3 changed files with 524 additions and 950 deletions
|
@ -29,6 +29,7 @@ from map_machine.scheme import RoadMatcher
|
|||
__author__ = "Sergey Vartanov"
|
||||
__email__ = "me@enzet.ru"
|
||||
|
||||
DEFAULT_LANE_WIDTH: float = 3.7
|
||||
USE_BLUR: bool = False
|
||||
|
||||
|
||||
|
@ -386,7 +387,7 @@ class Road(Tagged):
|
|||
|
||||
if "lanes" in tags:
|
||||
try:
|
||||
self.width = int(tags["lanes"]) * 3.7
|
||||
self.width = int(tags["lanes"]) * DEFAULT_LANE_WIDTH
|
||||
self.lanes = [Lane()] * int(tags["lanes"])
|
||||
except ValueError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue