Changing zoom level on intent
This commit is contained in:
parent
a42c6d99a1
commit
27a04f8a5d
|
@ -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}/${
|
||||
|
|
Loading…
Reference in New Issue