From 27a04f8a5df87535a6908641d5f27e15a9b2e128 Mon Sep 17 00:00:00 2001 From: evlist Date: Sun, 29 Jan 2023 20:44:53 +0100 Subject: [PATCH] Changing zoom level on intent --- src/components/map/Map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 111561a..b53725d 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -94,7 +94,7 @@ const Map: Component = () => { const url = new URL(intent.data); const q = url.search; const [, lat, lon] = q.match(/q=([0-9.-]+),([0-9.-]+)/); - const zoom = Math.max(18, getState().zoom); + const zoom = Math.max(16, getState().zoom); console.log({ caller: 'Intent receiver', intent, url, lat, lon, zoom }); navigate( `/map/${getState().provider}/${lon}/${lat}/${zoom}/${