X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..ff85679c2bc5fcc4119ab4da563fa5222440f3ab:/src/components/SearchSectionReverse.svelte diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte index 108e3b6..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); @@ -38,26 +40,33 @@
- +
+
gotoCoordinates(lon, lat)} class="btn btn-outline-secondary btn-sm" title="switch lat and lon"><> +
+
+
+
- +
+
+
@@ -85,4 +94,10 @@ padding: 2px; margin: 5px; } + + @media (max-width: 850px) { + #reverse-lon, #reverse-lat, #reverse-zoom { + width: 8em; + } + }