Skip to content

Commit

Permalink
Reduce vehicles markers size
Browse files Browse the repository at this point in the history
  • Loading branch information
hiba9201 authored and sashachabin committed Jul 29, 2023
1 parent 39bed45 commit ba32353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions client/components/Map/Vehicles/Item/MapVehiclesItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ export class MapVehiclesItemComponent extends Component<MapVehiclesItemProps> {
}

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(
<MapVehicleMarker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.MapVehicleMarker {
animation: 150ms ease-out enlarge;
transform-origin: 20px 28px;
transform-origin: 10px 20px;
}

@keyframes enlarge {
Expand Down

0 comments on commit ba32353

Please sign in to comment.