Changing zoom level on intent

This commit is contained in:
Eric van der Vlist 2023-01-29 20:44:53 +01:00
parent a42c6d99a1
commit 27a04f8a5d
1 changed files with 1 additions and 1 deletions

View File

@ -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}/${