X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/710e1e937f88dfab5224904406417b69f2e9094a..cf3e8f8daa0f2f4b014b9df6c32a436248237140:/src/components/MapPosition.svelte diff --git a/src/components/MapPosition.svelte b/src/components/MapPosition.svelte index 13e401a..074774d 100644 --- a/src/components/MapPosition.svelte +++ b/src/components/MapPosition.svelte @@ -42,9 +42,9 @@ view_on_osm_link = map_link_to_osm(map); map_zoom = map.getZoom(); map_viewbox = map_viewbox_as_string(map); - mouse_position = '-' + mouse_position = '-'; if (mouse_lat_lng) { - mouse_position = [mouse_lat_lng.lat.toFixed(5), mouse_lat_lng.lng.toFixed(5)].join(',') + mouse_position = [mouse_lat_lng.lat.toFixed(5), mouse_lat_lng.lng.toFixed(5)].join(','); } if (last_click_latlng) { last_click = [last_click_latlng.lat.toFixed(5), last_click_latlng.lng.toFixed(5)].join(','); @@ -53,7 +53,7 @@ map_store.subscribe(map => { - if(!map) { return; } + if (!map) return; map.on('move', function () { display_map_position(map); @@ -74,9 +74,9 @@ }); }); - function handleHideClick(e) { + function handleHideClick() { document.getElementById('map-position').style.display = 'none'; - document.getElementById('show-map-position').style.display = 'block'; + document.getElementById('show-map-position').style.display = 'block'; } @@ -84,7 +84,7 @@
map center: {map_center} - view on osm.org + view on osm.org
map zoom: {map_zoom}
@@ -115,9 +115,6 @@ text-align: right; } - - - @media (max-width: 768px) { #map-position { top: 20px;