X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/b3f82d79148184cdb999f9a64f20fce34c3b8dad..ef9bb27c4c8ff6ad84f75ac4d237ed42e4f3153b:/src/components/SearchSectionReverse.svelte diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte index aca422d..1861902 100644 --- a/src/components/SearchSectionReverse.svelte +++ b/src/components/SearchSectionReverse.svelte @@ -9,6 +9,8 @@ export let zoom = ''; function gotoCoordinates(newlat, newlon, newzoom) { + if (newlat === null || newlon === null) return; + let params = new URLSearchParams(); params.set('lat', newlat); params.set('lon', newlon);