2 import { refresh_page } from '../lib/stores.js';
6 export let zoom = null;
8 let params = new URLSearchParams();
9 let href = 'reverse.html';
12 let new_params = new URLSearchParams();
15 new_params.set('lat', lat);
16 new_params.set('lon', lon);
19 new_params.set('zoom', zoom);
27 let param_str = params.toString();
28 href = 'reverse.html' + (param_str ? '?' : '') + param_str;
32 <a on:click|preventDefault|stopPropagation={() => refresh_page('reverse', params)} href={href}><slot></slot></a>