diff --git a/packages/web-app/src/components/common/Maps/common/MapContainer.jsx b/packages/web-app/src/components/common/Maps/common/MapContainer.jsx index 3edcb559e..01fdb9ead 100644 --- a/packages/web-app/src/components/common/Maps/common/MapContainer.jsx +++ b/packages/web-app/src/components/common/Maps/common/MapContainer.jsx @@ -36,8 +36,9 @@ const CustomMapContainer = ({ dragging={dragging} scrollWheelZoom={scrollWheelZoom} isSideMenuOpen={isSideMenuOpen} - minZoom={3} - style={style}> + minZoom={5} + style={style} + preferCanvas> {children} diff --git a/packages/web-app/src/components/common/Properties/Property.jsx b/packages/web-app/src/components/common/Properties/Property.jsx index e70ec0949..5b03ce2e9 100644 --- a/packages/web-app/src/components/common/Properties/Property.jsx +++ b/packages/web-app/src/components/common/Properties/Property.jsx @@ -65,7 +65,7 @@ const Property = ({ {loading ? ( ) : ( - // 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
{label} diff --git a/packages/web-app/src/conf/Config.js b/packages/web-app/src/conf/Config.js index 982f621b3..648509fe8 100644 --- a/packages/web-app/src/conf/Config.js +++ b/packages/web-app/src/conf/Config.js @@ -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';