Skip to content

Commit

Permalink
Merge pull request #47548 from ShridharGoel/padding-fix
Browse files Browse the repository at this point in the history
Update padding used in map
  • Loading branch information
marcaaron authored Aug 24, 2024
2 parents a29977b + ec752a3 commit 42bed64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,6 @@ const CONST = {
PINK: 'Pink',
},

MAP_PADDING: 50,
MAP_MARKER_SIZE: 20,

QUICK_REACTIONS: [
Expand Down Expand Up @@ -3972,7 +3971,7 @@ const CONST = {
TAX_RATES_LIST_THRESHOLD: 8,
COLON: ':',
MAPBOX: {
PADDING: 50,
PADDING: 32,
DEFAULT_ZOOM: 15,
SINGLE_MARKER_ZOOM: 15,
DEFAULT_COORDINATE: [-122.4021, 37.7911],
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfirmedRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function ConfirmedRoute({mapboxAccessToken, transaction, isSmallerIcon, shouldHa
<DistanceMapView
interactive={interactive}
accessToken={mapboxAccessToken?.token ?? ''}
mapPadding={CONST.MAP_PADDING}
mapPadding={CONST.MAPBOX.PADDING}
pitchEnabled={false}
initialState={{
zoom: CONST.MAPBOX.DEFAULT_ZOOM,
Expand Down

0 comments on commit 42bed64

Please sign in to comment.