Add groups to icon configuration.

This commit is contained in:
Sergey Vartanov 2021-11-11 23:59:05 +03:00
parent 5a9760f618
commit c005dcc423
3 changed files with 524 additions and 950 deletions

View file

@ -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