From f7cd6ccae348467db9b2727a0a3cd61844f17d1a Mon Sep 17 00:00:00 2001 From: y2keui Date: Sat, 6 Jun 2026 23:12:54 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EC=A0=9C=ED=98=95=20=EC=B0=A8?= =?UTF-8?q?=EB=9F=89=20=EB=A7=88=EC=BB=A4=EB=A1=9C=20=EC=A0=84=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/public/app.js | 126 ++++-------------- apps/web/public/styles.css | 258 ++++++++++++++++--------------------- 2 files changed, 137 insertions(+), 247 deletions(-) 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 ` -