Fix multiselect popup, map back button, RoadClass float crash
This commit is contained in:
+4
-3
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user