Fix multiselect popup, map back button, RoadClass float crash

This commit is contained in:
zyphlar
2026-04-09 23:28:48 -07:00
parent 973b2350af
commit 3e1b7aa089
4 changed files with 29 additions and 5 deletions
+4 -3
View File
@@ -408,11 +408,12 @@ class RoadComparator:
elif key == 'SpeedLimit':
properties['maxspeed'] = f"{value} mph" if value is not None else None
elif key == 'RoadClass':
if value is None:
value_str = str(value) if value is not None else None
if value_str is None:
properties['highway'] = 'residential'
elif value.startswith('PRIMARY'):
elif value_str.startswith('PRIMARY'):
properties['highway'] = 'trunk'
elif value.startswith('MAJOR'):
elif value_str.startswith('MAJOR'):
properties['highway'] = 'primary'
else:
properties['highway'] = 'residential'