From 65053df86b3167cf809a3e51e5d278883e33c4dd Mon Sep 17 00:00:00 2001 From: hiba9201 Date: Mon, 5 Jun 2023 22:18:13 +0500 Subject: [PATCH] Reduce vehicles markers size --- client/components/Map/Vehicles/Item/MapVehiclesItem.tsx | 7 +++---- .../Map/Vehicles/Marker/MapVehicleMarker.module.css | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/components/Map/Vehicles/Item/MapVehiclesItem.tsx b/client/components/Map/Vehicles/Item/MapVehiclesItem.tsx index afdb45a3..2e2b2356 100644 --- a/client/components/Map/Vehicles/Item/MapVehiclesItem.tsx +++ b/client/components/Map/Vehicles/Item/MapVehiclesItem.tsx @@ -62,13 +62,12 @@ export class MapVehiclesItemComponent extends Component { } getIcon() { - const { id, num, course, type, accessibility, warning } = this.props; + const { id, num, course, type, accessibility, warning, map } = this.props; const isCourseEast = course > EAST_COURSE_RANGE.left && course < EAST_COURSE_RANGE.right; return new L.DivIcon({ - iconSize: [33, 28], - iconAnchor: [16.5, 14], - popupAnchor: [0, -14], + iconSize: [22, 15], + iconAnchor: [11, 25], className: `${cn(styles.MapVehicle)}`, html: ReactDOMServer.renderToStaticMarkup(