2 import { refresh_page } from '../lib/stores.js';
6 export let zoom = null;
7 export let extra_classes = '';
9 let params = new URLSearchParams();
10 let href = 'reverse.html';
13 let new_params = new URLSearchParams();
16 new_params.set('lat', lat);
17 new_params.set('lon', lon);
20 new_params.set('zoom', zoom);
28 let param_str = params.toString();
29 href = 'reverse.html' + (param_str ? '?' : '') + param_str;
33 <a on:click|preventDefault|stopPropagation={() => refresh_page('reverse', params)}
35 class={extra_classes}>