Skip to content

Commit

Permalink
Rotate the geolocation 180 degrees
Browse files Browse the repository at this point in the history
tested by putting
geolocation.heading = 270 in src/components/map/ConnectGeolocation.js
, then applying the change, and seeing it flip east -> west
  • Loading branch information
wbazant committed Nov 27, 2024
1 parent 13b4fca commit 6217af7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/components/map/ConnectGeolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export const ConnectGeolocation = () => {
case GeolocationState.INITIAL:
case GeolocationState.DENIED:
// Should not happen
// @see
break

default:
Expand Down
2 changes: 1 addition & 1 deletion src/components/map/GeolocationDot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Heading = styled.div`
top: 0;
left: -35px;
transform-origin: top center;
transform: rotate(${({ heading }) => heading}deg);
transform: rotate(${({ heading }) => -heading}deg);
height: 55px;
width: 70px;
Expand Down

0 comments on commit 6217af7

Please sign in to comment.