diff --git a/apps/web/public/app.js b/apps/web/public/app.js index c551f74..c988421 100644 --- a/apps/web/public/app.js +++ b/apps/web/public/app.js @@ -926,9 +926,9 @@ function updateLeafletMarker(location) { const icon = L.divIcon({ className: `leaflet-truck-marker truck-marker ${status.key} ${vehicleType.className} ${selectedClass}`, html: createTruckMarkerHtml(location, vehicleType, markerHeading), - iconSize: [96, 78], - iconAnchor: [48, 74], - popupAnchor: [0, -58] + iconSize: [86, 68], + iconAnchor: [43, 64], + popupAnchor: [0, -50] }); let marker = existingMarker; @@ -969,113 +969,35 @@ function createTruckMarkerElement(location, status, heading) { function createTruckMarkerHtml(location, vehicleType = getVehicleType(location), heading = getLocationHeading(location)) { const label = location.vehicleNo ? location.vehicleNo.slice(-4) : location.driverId.slice(0, 4); const rotation = normalizeMarkerRotation(heading); + const markerCode = getVehicleMarkerCode(vehicleType.className); return ` -