Skip to content

Commit

Permalink
tech(map): update default state of map and add preferCanvas prop
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenathan committed Apr 25, 2022
1 parent 864d3df commit df524e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ const CustomMapContainer = ({
dragging={dragging}
scrollWheelZoom={scrollWheelZoom}
isSideMenuOpen={isSideMenuOpen}
minZoom={3}
style={style}>
minZoom={5}
style={style}
preferCanvas>
<LayersControl />
{children}
</Map>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Property = ({
{loading ? (
<Skeleton variant="text" width="100%" />
) : (
// Use simple div because MUI Box components have performance issues
// Using div instead of Box for performance purpose on the marker's popup on the map.
// https://github.com/mui/material-ui/issues/21657#issuecomment-707140999
<div style={{ display: 'flex', flexDirection: 'column' }}>
<Title variant="caption">{label}</Title>
Expand Down
4 changes: 2 additions & 2 deletions packages/web-app/src/conf/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ export const breadcrumpKeys = {
users: 'Users'
};

export const defaultCoord = { lat: 0, lng: 0 };
export const defaultZoom = 3;
export const defaultCoord = { lat: 47.5, lng: 19 }; // Budapest
export const defaultZoom = 6;
export const focusZoom = 13;
export const sideMenuWidth = '215px';
export const logoGC = '/images/logo.svg';
Expand Down

0 comments on commit df524e6

Please sign in to comment.