Fixes for map results page
Some checks failed
Run Integration Tests / test (push) Failing after 19m14s

This commit is contained in:
partisan 2025-06-30 14:48:18 +02:00
parent 04fb53cf11
commit 43d7068c7a
48 changed files with 120 additions and 239 deletions

View file

@ -184,8 +184,6 @@ msgstr "Strate"
msgid "satellite"
msgstr "Satelliet"
msgid "esri_satellite"
msgstr "Esri Satelliet"
msgid "topographic"
msgstr "Topografiese"

View file

@ -184,8 +184,6 @@ msgstr "شوارع"
msgid "satellite"
msgstr "قمر صناعي"
msgid "esri_satellite"
msgstr "قمر صناعي ESRI"
msgid "topographic"
msgstr "طوبوغرافي"

View file

@ -184,8 +184,6 @@ msgstr "Вуліцы"
msgid "satellite"
msgstr "Спадарожнік"
msgid "esri_satellite"
msgstr "Спадарожнік ESRI"
msgid "topographic"
msgstr "Тапаграфічная"

View file

@ -184,8 +184,6 @@ msgstr "Улици"
msgid "satellite"
msgstr "Сателит"
msgid "esri_satellite"
msgstr "ESRI Сателит"
msgid "topographic"
msgstr "Топографска"

View file

@ -184,8 +184,6 @@ msgstr "Carrers"
msgid "satellite"
msgstr "Satèl·lit"
msgid "esri_satellite"
msgstr "Satèl·lit ESRI"
msgid "topographic"
msgstr "Topogràfic"

View file

@ -184,8 +184,6 @@ msgstr "Ulice"
msgid "satellite"
msgstr "Satelitní"
msgid "esri_satellite"
msgstr "Esri Satelitní"
msgid "topographic"
msgstr "Topografická"

View file

@ -184,8 +184,6 @@ msgstr "Gader"
msgid "satellite"
msgstr "Satellit"
msgid "esri_satellite"
msgstr "ESRI Satellit"
msgid "topographic"
msgstr "Topografisk"

View file

@ -184,8 +184,6 @@ msgstr "Straßen"
msgid "satellite"
msgstr "Satellit"
msgid "esri_satellite"
msgstr "ESRI-Satellit"
msgid "topographic"
msgstr "Topographisch"

View file

@ -184,8 +184,6 @@ msgstr "Δρόμοι"
msgid "satellite"
msgstr "Δορυφόρος"
msgid "esri_satellite"
msgstr "ESRI Δορυφόρος"
msgid "topographic"
msgstr "Τοπογραφικός"

View file

@ -190,8 +190,6 @@ msgstr "Streets"
msgid "satellite"
msgstr "Satellite"
msgid "esri_satellite"
msgstr "Esri Satellite"
msgid "topographic"
msgstr "Topographic"

View file

@ -184,8 +184,6 @@ msgstr "Stratoj"
msgid "satellite"
msgstr "Satelito"
msgid "esri_satellite"
msgstr "ESRI Satelito"
msgid "topographic"
msgstr "Topografia"

View file

@ -184,8 +184,6 @@ msgstr "Calles"
msgid "satellite"
msgstr "Satélite"
msgid "esri_satellite"
msgstr "Satélite ESRI"
msgid "topographic"
msgstr "Topográfico"

View file

@ -184,8 +184,6 @@ msgstr "Tänavad"
msgid "satellite"
msgstr "Satelliit"
msgid "esri_satellite"
msgstr "ESRI Satelliit"
msgid "topographic"
msgstr "Topograafiline"

View file

@ -184,8 +184,6 @@ msgstr "خیابان‌ها"
msgid "satellite"
msgstr "ماهواره"
msgid "esri_satellite"
msgstr "ماهواره ESRI"
msgid "topographic"
msgstr "توپوگرافی"

View file

@ -184,8 +184,6 @@ msgstr "Kadut"
msgid "satellite"
msgstr "Satelliitti"
msgid "esri_satellite"
msgstr "ESRI Satelliitti"
msgid "topographic"
msgstr "Topografinen"

View file

@ -184,8 +184,6 @@ msgstr "Rues"
msgid "satellite"
msgstr "Satellite"
msgid "esri_satellite"
msgstr "Satellite ESRI"
msgid "topographic"
msgstr "Topographique"

View file

@ -184,8 +184,6 @@ msgstr "सड़कें"
msgid "satellite"
msgstr "सैटेलाइट"
msgid "esri_satellite"
msgstr "ESRI सैटेलाइट"
msgid "topographic"
msgstr "टोपोग्राफिक"

View file

@ -184,8 +184,6 @@ msgstr "Ulice"
msgid "satellite"
msgstr "Satelit"
msgid "esri_satellite"
msgstr "ESRI Satelit"
msgid "topographic"
msgstr "Topografski"

View file

@ -184,8 +184,6 @@ msgstr "Utcák"
msgid "satellite"
msgstr "Műhold"
msgid "esri_satellite"
msgstr "ESRI Műhold"
msgid "topographic"
msgstr "Topográfiai"

View file

@ -184,8 +184,6 @@ msgstr "Փողոցներ"
msgid "satellite"
msgstr "Արհեստական արբանյակ"
msgid "esri_satellite"
msgstr "ESRI Արհեստական արբանյակ"
msgid "topographic"
msgstr "Տոպոգրաֆիկ"

View file

@ -184,8 +184,6 @@ msgstr "Jalan"
msgid "satellite"
msgstr "Satelit"
msgid "esri_satellite"
msgstr "Satelit ESRI"
msgid "topographic"
msgstr "Topografi"

View file

@ -184,8 +184,6 @@ msgstr "Strade"
msgid "satellite"
msgstr "Satellitare"
msgid "esri_satellite"
msgstr "Satellitare ESRI"
msgid "topographic"
msgstr "Topografico"

View file

@ -184,8 +184,6 @@ msgstr "רחובות"
msgid "satellite"
msgstr "לוויין"
msgid "esri_satellite"
msgstr "לוויין ESRI"
msgid "topographic"
msgstr "טופוגרפי"

View file

@ -184,8 +184,6 @@ msgstr "ストリート"
msgid "satellite"
msgstr "衛星"
msgid "esri_satellite"
msgstr "ESRI 衛星"
msgid "topographic"
msgstr "地形図"

View file

@ -184,8 +184,6 @@ msgstr "거리"
msgid "satellite"
msgstr "위성"
msgid "esri_satellite"
msgstr "ESRI 위성"
msgid "topographic"
msgstr "지형도"

View file

@ -184,8 +184,6 @@ msgstr "Gatvės"
msgid "satellite"
msgstr "Palydovas"
msgid "esri_satellite"
msgstr "ESRI palydovas"
msgid "topographic"
msgstr "Topografinis"

View file

@ -184,8 +184,6 @@ msgstr "Ielas"
msgid "satellite"
msgstr "Satelīts"
msgid "esri_satellite"
msgstr "ESRI satelīts"
msgid "topographic"
msgstr "Topogrāfiskais"

View file

@ -184,8 +184,6 @@ msgstr "Straten"
msgid "satellite"
msgstr "Satelliet"
msgid "esri_satellite"
msgstr "ESRI Satelliet"
msgid "topographic"
msgstr "Topografisch"

View file

@ -184,8 +184,6 @@ msgstr "Gater"
msgid "satellite"
msgstr "Satellitt"
msgid "esri_satellite"
msgstr "ESRI Satellitt"
msgid "topographic"
msgstr "Topografisk"

View file

@ -184,8 +184,6 @@ msgstr "Ulice"
msgid "satellite"
msgstr "Satelita"
msgid "esri_satellite"
msgstr "Esri Satelita"
msgid "topographic"
msgstr "Topograficzna"

View file

@ -184,8 +184,6 @@ msgstr "Ruas"
msgid "satellite"
msgstr "Satélite"
msgid "esri_satellite"
msgstr "Satélite ESRI"
msgid "topographic"
msgstr "Topográfico"

View file

@ -184,8 +184,6 @@ msgstr "Străzi"
msgid "satellite"
msgstr "Satelit"
msgid "esri_satellite"
msgstr "Satelit ESRI"
msgid "topographic"
msgstr "Topografic"

View file

@ -184,8 +184,6 @@ msgstr "Улицы"
msgid "satellite"
msgstr "Спутник"
msgid "esri_satellite"
msgstr "Спутник ESRI"
msgid "topographic"
msgstr "Топографическая"

View file

@ -184,8 +184,6 @@ msgstr "Ulice"
msgid "satellite"
msgstr "Satelit"
msgid "esri_satellite"
msgstr "ESRI Satelit"
msgid "topographic"
msgstr "Topografické"

View file

@ -184,8 +184,6 @@ msgstr "Ulice"
msgid "satellite"
msgstr "Satelit"
msgid "esri_satellite"
msgstr "ESRI satelit"
msgid "topographic"
msgstr "Topografsko"

View file

@ -184,8 +184,6 @@ msgstr "Улице"
msgid "satellite"
msgstr "Сателит"
msgid "esri_satellite"
msgstr "ESRI сателит"
msgid "topographic"
msgstr "Топографска"

View file

@ -184,8 +184,6 @@ msgstr "Gator"
msgid "satellite"
msgstr "Satellit"
msgid "esri_satellite"
msgstr "ESRI Satellit"
msgid "topographic"
msgstr "Topografisk"

View file

@ -184,8 +184,6 @@ msgstr "Mitaa"
msgid "satellite"
msgstr "Setilaiti"
msgid "esri_satellite"
msgstr "Setilaiti ya ESRI"
msgid "topographic"
msgstr "Topografia"

View file

@ -184,8 +184,6 @@ msgstr "ถนน"
msgid "satellite"
msgstr "ดาวเทียม"
msgid "esri_satellite"
msgstr "ดาวเทียม ESRI"
msgid "topographic"
msgstr "ภูมิประเทศ"

View file

@ -184,8 +184,6 @@ msgstr "Mga Kalye"
msgid "satellite"
msgstr "Satelite"
msgid "esri_satellite"
msgstr "ESRI Satelite"
msgid "topographic"
msgstr "Topograpiko"

View file

@ -184,8 +184,6 @@ msgstr "Sokaklar"
msgid "satellite"
msgstr "Uydu"
msgid "esri_satellite"
msgstr "ESRI Uydu"
msgid "topographic"
msgstr "Topografik"

View file

@ -184,8 +184,6 @@ msgstr "Вулиці"
msgid "satellite"
msgstr "Супутник"
msgid "esri_satellite"
msgstr "Супутник ESRI"
msgid "topographic"
msgstr "Топографічна"

View file

@ -184,8 +184,6 @@ msgstr "Đường phố"
msgid "satellite"
msgstr "Vệ tinh"
msgid "esri_satellite"
msgstr "Vệ tinh ESRI"
msgid "topographic"
msgstr "Địa hình"

View file

@ -184,8 +184,6 @@ msgstr "街道"
msgid "satellite"
msgstr "卫星"
msgid "esri_satellite"
msgstr "ESRI 卫星"
msgid "topographic"
msgstr "地形图"

View file

@ -184,8 +184,6 @@ msgstr "街道"
msgid "satellite"
msgstr "衛星"
msgid "esri_satellite"
msgstr "ESRI 衛星"
msgid "topographic"
msgstr "地形"

View file

@ -1,3 +1,28 @@
/* Unable to find ... message */
.message {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
padding: 10px;
background-color: var(--search-bg);
border: 1px solid var(--border);
border-radius: 5px;
box-shadow: 0 0 10px var(--box-shadow);
z-index: 1000;
width: auto;
max-width: 80%;
text-align: center;
color: var(--text-color);
}
/* Map container */
#map {
height: calc(100% - 65px);
width: 100%;
top: 65px;
}
.leaflet-control-layers-toggle {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
@ -35,10 +60,26 @@
}
.leaflet-bar a,
.leaflet-bar a:focus,
.leaflet-bar a:active,
.leaflet-bar a:hover {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
color: var(--fg) !important;
box-shadow: 0 2px 12px rgba(0,0,0,0.24) !important;
transition: background-color 0.2s;
}
.leaflet-control-layers-toggle,
.leaflet-control-layers-expanded {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
color: var(--fg) !important;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
background-color: var(--search-select) !important;
}
.leaflet-popup-content-wrapper,
@ -86,25 +127,8 @@
text-shadow: 1px 1px 2px var(--border) !important;
}
/* Ensuring dark theme compliance */
@media (prefers-color-scheme: dark) {
.leaflet-control-locate,
.leaflet-control-layers-toggle,
.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.leaflet-control-attribution,
.leaflet-control-scale,
.leaflet-control-scale-line {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
color: var(--fg) !important;
text-shadow: 1px 1px 2px var(--background-color) !important;
}
.leaflet-control-attribution a {
color: var(--link) !important;
@media only screen and (max-width: 880px) {
#map {
top: 130px !important;
}
}

View file

@ -843,50 +843,6 @@ p {
margin-left: 175px;
}
/* MAP */
.message {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
padding: 10px;
background-color: var(--search-bg);
border: 1px solid var(--border);
border-radius: 5px;
box-shadow: 0 0 10px var(--box-shadow);
z-index: 1000;
width: auto;
max-width: 80%;
text-align: center;
color: var(--text-color);
}
/* Map container */
#map {
height: calc(100% - 60px);
width: 100%;
top: 60px;
}
/* Leaflet control buttons */
.leaflet-control-locate {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
color: var(--fg) !important;
}
/* Leaflet control buttons */
.leaflet-control-locate {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
color: var(--fg) !important;
}
/* Leaflet attribution control */
/* Leaflet scale control */
/* Favicon styling */
.result_header {
display: flex;
@ -911,8 +867,6 @@ p {
box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}
/* Result link styling */
/* Result item spacing */
.result_item {
margin-bottom: 1.5rem;
@ -966,13 +920,6 @@ p {
gap: 4px;
}
/*
.result-path::before {
content: "";
margin: 0 4px;
opacity: 0.6;
} */
body,
h1,
p,
@ -1312,21 +1259,7 @@ button {
}
.results_settings {
display: flex;
/* Enable flexbox */
flex-wrap: wrap;
/* Allow elements to wrap onto new lines when necessary */
}
}
/* Ensuring dark theme compliance */
@media (prefers-color-scheme: dark) {
.leaflet-control-locate {
background-color: var(--button) !important;
border: 1px solid var(--border) !important;
color: var(--fg) !important;
text-shadow: 1px 1px 2px var(--background-color) !important;
/* Dark theme shadow adjustment */
display: flex; /* Enable flexbox */
flex-wrap: wrap; /* Allow elements to wrap onto new lines when necessary */
}
}

View file

@ -171,43 +171,57 @@
{{ if .Found }}
<script>
document.addEventListener('DOMContentLoaded', function () {
var map = L.map('map').setView([{{ .Latitude }}, {{ .Longitude }}], 13); // Set view to found coordinates
var map = L.map('map').setView([{{ .Latitude }}, {{ .Longitude }}], 13);
// Base layers
// Streets
var streets = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
maxZoom: 20,
attribution: '© OpenStreetMap contributors'
});
var satellite = L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
// Satellite (correct cords order is: {z}/{y}/{x})
var satellite = L.tileLayer(
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
maxZoom: 19,
attribution: '© OpenStreetMap contributors'
});
var esriSat = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{x}/{y}', {
maxZoom: 19,
attribution: 'Tiles © Esri'
});
attribution: 'Tiles © Esri — Source: Esri, Earthstar Geographics, Maxar, GeoEye, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community'
}
);
// Topographic
var topo = L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
maxZoom: 17,
attribution: '© OpenTopoMap contributors'
attribution: '© <a href="https://opentopomap.org">OpenTopoMap</a> contributors'
});
var baseMaps = {
"{{ translate "streets" }}": streets,
"{{ translate "satellite" }}": satellite,
"{{ translate "esri_satellite" }}": esriSat,
"{{ translate "topographic" }}": topo
};
streets.addTo(map); // Add default layer
streets.addTo(map);
// Layer control
L.control.layers(baseMaps).addTo(map);
// SVG Marker
var svgIcon = L.divIcon({
className: "",
html: `
<svg width="32" height="48" viewBox="0 0 32 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="16" cy="17" rx="13" ry="13" fill="var(--blue)"/>
<path d="M16 48c8-13 13-18 13-31a13 13 0 1 0-26 0c0 13 5 18 13 31z" fill="var(--blue)" stroke="var(--border)" stroke-width="2"/>
<circle cx="16" cy="17" r="6" fill="var(--border)" />
</svg>
`,
iconSize: [32, 48],
iconAnchor: [16, 47],
popupAnchor: [0, -40],
});
// Marker with passed coordinates
L.marker([{{ .Latitude }}, {{ .Longitude }}]).addTo(map)
L.marker([{{ .Latitude }}, {{ .Longitude }}], {icon: svgIcon})
.addTo(map)
.bindPopup('{{ .Query }}');
// Add scale control