From 65a429b62f1b2a1f3328df05418e2f4e169fbac7 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Wed, 7 Oct 2026 13:57:06 +0800 Subject: [PATCH] fix(live-map): fall back to the shipped map-marker.png for drivers and vehicles The Google live map fell back to /engines-dist/images/driver-marker.png and vehicle-marker.png, neither of which exists in assets/images, so a driver or vehicle without an avatar rendered a broken marker. Point both at the existing map-marker.png, as the leaflet live-fleet widget already does. The URLs stay literal strings so broccoli-asset-rev can fingerprint them in production. --- addon/components/map/google-live-map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/components/map/google-live-map.js b/addon/components/map/google-live-map.js index 9908e5ae2..ec43beea9 100644 --- a/addon/components/map/google-live-map.js +++ b/addon/components/map/google-live-map.js @@ -59,7 +59,7 @@ export default class MapGoogleLiveMapComponent extends Component { const marker = this.mapManager.getMarker(driver.id); if (!marker) { const createdMarker = await this.mapManager.addMarker(driver.id, coords.lat, coords.lng, { - iconUrl: driver.vehicle_avatar ?? '/engines-dist/images/driver-marker.png', + iconUrl: driver.vehicle_avatar ?? '/engines-dist/images/map-marker.png', iconSize: [20, 20], title: driver.name, tooltip: buildDriverLiveMapContent(driver), @@ -89,7 +89,7 @@ export default class MapGoogleLiveMapComponent extends Component { const marker = this.mapManager.getMarker(vehicle.id); if (!marker) { const createdMarker = await this.mapManager.addMarker(vehicle.id, coords.lat, coords.lng, { - iconUrl: vehicle.avatar_url ?? '/engines-dist/images/vehicle-marker.png', + iconUrl: vehicle.avatar_url ?? '/engines-dist/images/map-marker.png', iconSize: [20, 20], title: vehicle.displayName, tooltip: buildVehicleLiveMapContent(vehicle),