Skip to content

Commit

Permalink
Merge pull request #44752 from Krishna2323/krishna2323/issue/44486
Browse files Browse the repository at this point in the history
fix: iOS - Distance - Center icon overlaps with compass icon.
  • Loading branch information
lakchote authored Jul 17, 2024
2 parents 1716b81 + 9b5c74d commit 9c509a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/MapView/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ const MapView = forwardRef<MapViewHandle, ComponentProps>(
pitchEnabled={pitchEnabled}
attributionPosition={{...styles.r2, ...styles.b2}}
scaleBarEnabled={false}
// We use scaleBarPosition with top: -32 to hide the scale bar on iOS because scaleBarEnabled={false} not work on iOS
scaleBarPosition={{...styles.tn8, left: 0}}
compassEnabled
compassPosition={{...styles.l2, ...styles.t5}}
logoPosition={{...styles.l2, ...styles.b2}}
// eslint-disable-next-line react/jsx-props-no-spreading
{...responder.panHandlers}
Expand Down
3 changes: 3 additions & 0 deletions src/styles/utils/positioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default {
t0: {
top: 0,
},
t5: {
top: 20,
},
tn4: {
top: -16,
},
Expand Down

0 comments on commit 9c509a0

Please sign in to comment.