diff --git a/packages/components/socialFeed/Map/Map.web.tsx b/packages/components/socialFeed/Map/Map.web.tsx index e1ef7c653..88b451481 100644 --- a/packages/components/socialFeed/Map/Map.web.tsx +++ b/packages/components/socialFeed/Map/Map.web.tsx @@ -205,8 +205,9 @@ export const Map: FC = ({ center={ consultedPostLocation || creatingPostLocation || DEFAULT_MAP_POSITION } - zoom={12} + zoom={!consultedPostLocation && !creatingPostLocation ? 2 : 12} attributionControl={false} + minZoom={2} > {/*----Loads and displays tiles on the map*/} diff --git a/packages/utils/feed/map.ts b/packages/utils/feed/map.ts index f0e566946..b4642b190 100644 --- a/packages/utils/feed/map.ts +++ b/packages/utils/feed/map.ts @@ -12,8 +12,8 @@ import { CustomLatLngExpression, PostCategory } from "@/utils/types/feed"; export const MAP_LAYER_URL = `https://{s}.tile.jawg.io/jawg-dark/{z}/{x}/{y}{r}.png?access-token=${process.env.EXPO_PUBLIC_LEAFLET_MAP_TOKEN}`; -// Paris baguette -export const DEFAULT_MAP_POSITION: CustomLatLngExpression = [48.8566, 2.3522]; +// center of the map +export const DEFAULT_MAP_POSITION: CustomLatLngExpression = [0, 0]; const musicPostSvgString = `