Spaces:
Sleeping
Sleeping
Update services/map_service.py
Browse files- services/map_service.py +1 -1
services/map_service.py
CHANGED
@@ -20,7 +20,7 @@ def generate_map_html(gps_coordinates, items):
|
|
20 |
|
21 |
# Add markers for cracks and potholes
|
22 |
for coord, item in zip(gps_coordinates[-len(items):], items):
|
23 |
-
color = 'red' if item['type'] == 'crack' else '
|
24 |
severity = item.get('severity', 'Unknown')
|
25 |
confidence = item.get('confidence', 0.0)
|
26 |
obj_id = item.get('id', 'N/A')
|
|
|
20 |
|
21 |
# Add markers for cracks and potholes
|
22 |
for coord, item in zip(gps_coordinates[-len(items):], items):
|
23 |
+
color = 'red' if item['type'] == 'crack' else 'blue' # Updated color for potholes
|
24 |
severity = item.get('severity', 'Unknown')
|
25 |
confidence = item.get('confidence', 0.0)
|
26 |
obj_id = item.get('id', 'N/A')
|