Skip to content

Commit

Permalink
improvement(map): limit retrieved entries by limiting zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
bsoufflet committed Apr 24, 2022
1 parent 3dae425 commit 3d41c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ const CustomMapContainer = ({
dragging={dragging}
scrollWheelZoom={scrollWheelZoom}
isSideMenuOpen={isSideMenuOpen}
minZoom={3}
minZoom={5}
style={style}>
<LayersControl />
{children}
preferCanvas={true}
</Map>
);
};
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 3d41c7e

Please sign in to comment.