]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/components/DetailsIndex.svelte
reverse search: better initial zoom (#63)
[nominatim-ui.git] / src / components / DetailsIndex.svelte
index b653e34534023d93d386df26c9527fb0d8ce0ad3..1b199677ea776ba19ce36b00d7ac9a73273350c6 100644 (file)
@@ -14,7 +14,8 @@
       return;
     }
 
-    form_el.querySelector('input[name=osmtype]').setAttribute('value', matches[1].charAt(0).toUpperCase());
+    let osmtype_short = matches[1].charAt(0).toUpperCase();
+    form_el.querySelector('input[name=osmtype]').setAttribute('value', osmtype_short);
     form_el.querySelector('input[name=osmid]').setAttribute('value', matches[2]);
     form_el.submit();
   }