mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-04 16:01:16 -05:00
LR-MAP-MODULE: the Map view's keys, Hide Pins, View > Map and Settings > Map tile source and cache
- Keys in the Map view only (shortcuts::grid_key_command, the rule that
already gave the map \ and Cmd+K): H hides / shows the pins, O the saved
locations list, = / - and Cmd+= / Cmd+- zoom the map, Cmd+0 fits it; the +
alias zooms there too. Elsewhere the keys keep Remove, the mask overlay,
the grid's thumbnail size and the photo zoom; the Masking panel's H
override stays out of the Map view.
- Hide Pins: MapUi.show_pins (saved in ui.json), the bottom toolbar's Hide
Pins, map.showPins {on?}; hidden pins can't be clicked, hovered or dragged;
saved locations and the track log stay. map.showLocations {on?} (the
navigator panel holding the list), map.settings (Settings > Map).
- View > Map (after PR #921's map menu): Fit, Zoom In / Out, Map Pins, Lock
Markers, Location Filter Bar, Location Filter > 4 modes, Saved Locations >
New Location... / Saved Locations List, Tracklog > Load / Auto-Tag / Set
Offset / Fit / Clear, Map Tiles...; greyed outside the Map view. Window >
Map keeps the panel toggles.
- Settings > Map: the tile source (built-in sources usable now, the Esri
styles only with a key, Offline), a custom server applied on Apply or
Return only (a refused one shows why and changes nothing), the tile cache's
size with Clear Cache, what a tile server sees, a link to docs/map.md, then
the ArcGIS key. The offline note says "Map tiles are off (Settings > Map)".
- Tests: tests/map_keys.rs (each key in and out of the Map view, hidden pins
not clickable, the menu and its states, Settings source / bad server /
custom on Apply / Esri with a key).
- Docs: map.md "Keys and menus", library-shortcuts.md, control protocol;
LR-MAP-MODULE 0 -> partial, MENU-VIEW-MAP added; strings in all 17 catalogs.
After PR #921 by Jason Baldwin.
Co-Authored-By: Jason Baldwin <33934381+bitshiftza@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -339,5 +339,6 @@
|
||||
"Track {n}": "Trasa {n}",
|
||||
"camera time, UTC{o}": "čas fotoaparátu, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} z nich spadá do časového rozsahu trasy",
|
||||
"{n} more tracks": "dalších tras: {n}"
|
||||
"{n} more tracks": "dalších tras: {n}",
|
||||
"{size} MB, {n} tiles": "{size} MB, dlaždic: {n}"
|
||||
}
|
||||
|
||||
@@ -2599,5 +2599,21 @@
|
||||
"Clear Tracklog": "Vymazat záznam trasy",
|
||||
"Tagged 1 photo from the tracklog": "Z záznamu trasy označena 1 fotka",
|
||||
"Auto-Tag Photos from Map Tracklog": "Automaticky označit fotky ze záznamu trasy na mapě",
|
||||
"Map Tracklog": "Záznam trasy na mapě"
|
||||
"Map Tracklog": "Záznam trasy na mapě",
|
||||
"Map Pins": "Špendlíky na mapě",
|
||||
"Saved Locations List": "Seznam uložených míst",
|
||||
"Map Tiles…": "Mapové dlaždice…",
|
||||
"Hide Pins": "Skrýt špendlíky",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Skrýt špendlíky fotek (H); uložená místa a záznam trasy zůstanou",
|
||||
"Map tiles": "Mapové dlaždice",
|
||||
"Tile source": "Zdroj dlaždic",
|
||||
"URL template": "Šablona URL",
|
||||
"Attribution": "Uvedení zdroje",
|
||||
"Max zoom": "Max. přiblížení",
|
||||
"© the provider": "© poskytovatel",
|
||||
"Max zoom is a whole number from 0 to 24": "Max. přiblížení je celé číslo od 0 do 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Server dlaždic vidí, které dlaždice si prohlížíte (tedy zhruba která místa), vaši IP adresu a název a verzi LightCraftu; nic jiného počítač neopouští. Offline nestahuje nic. Adresa vlastního serveru může obsahovat váš klíč, na vaši odpovědnost.",
|
||||
"Tile cache": "Mezipaměť dlaždic",
|
||||
"About map tiles and privacy (docs/map.md)": "O mapových dlaždicích a soukromí (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Mapové dlaždice jsou vypnuté (Nastavení › Mapa)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "Track {n}",
|
||||
"camera time, UTC{o}": "Kamerazeit, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} davon liegen im Zeitraum des Tracks",
|
||||
"{n} more tracks": "{n} weitere Tracks"
|
||||
"{n} more tracks": "{n} weitere Tracks",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} Kacheln"
|
||||
}
|
||||
|
||||
@@ -3634,5 +3634,21 @@
|
||||
"Clear Tracklog": "Tracklog entfernen",
|
||||
"Tagged 1 photo from the tracklog": "1 Foto aus dem Tracklog verortet",
|
||||
"Auto-Tag Photos from Map Tracklog": "Fotos aus dem Karten-Tracklog verorten",
|
||||
"Map Tracklog": "Karten-Tracklog"
|
||||
"Map Tracklog": "Karten-Tracklog",
|
||||
"Map Pins": "Kartenstecknadeln",
|
||||
"Saved Locations List": "Liste der gespeicherten Orte",
|
||||
"Map Tiles…": "Kartenkacheln…",
|
||||
"Hide Pins": "Stecknadeln ausblenden",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Fotostecknadeln ausblenden (H); gespeicherte Orte und der Tracklog bleiben",
|
||||
"Map tiles": "Kartenkacheln",
|
||||
"Tile source": "Kachelquelle",
|
||||
"URL template": "URL-Vorlage",
|
||||
"Attribution": "Quellenangabe",
|
||||
"Max zoom": "Max. Zoom",
|
||||
"© the provider": "© der Anbieter",
|
||||
"Max zoom is a whole number from 0 to 24": "Der max. Zoom ist eine ganze Zahl von 0 bis 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Ein Kachelserver sieht, welche Kacheln Sie ansehen (also ungefähr welche Orte), Ihre IP-Adresse sowie Name und Version von LightCraft; sonst verlässt nichts den Rechner. Offline lädt nichts. Die Adresse eines eigenen Servers darf Ihren eigenen Schlüssel enthalten, auf eigene Verantwortung.",
|
||||
"Tile cache": "Kachel-Cache",
|
||||
"About map tiles and privacy (docs/map.md)": "Über Kartenkacheln und Datenschutz (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Kartenkacheln sind aus (Einstellungen › Karte)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "Ruta {n}",
|
||||
"camera time, UTC{o}": "hora de la cámara, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} de ellas caen dentro del intervalo de la ruta",
|
||||
"{n} more tracks": "{n} rutas más"
|
||||
"{n} more tracks": "{n} rutas más",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} teselas"
|
||||
}
|
||||
|
||||
@@ -2554,5 +2554,21 @@
|
||||
"Clear Tracklog": "Quitar registro de ruta",
|
||||
"Tagged 1 photo from the tracklog": "1 foto etiquetada con el registro de ruta",
|
||||
"Auto-Tag Photos from Map Tracklog": "Etiquetar fotos con el registro de ruta del mapa",
|
||||
"Map Tracklog": "Registro de ruta del mapa"
|
||||
"Map Tracklog": "Registro de ruta del mapa",
|
||||
"Map Pins": "Marcadores del mapa",
|
||||
"Saved Locations List": "Lista de ubicaciones guardadas",
|
||||
"Map Tiles…": "Teselas del mapa…",
|
||||
"Hide Pins": "Ocultar marcadores",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Ocultar los marcadores de fotos (H); las ubicaciones guardadas y el registro de ruta se quedan",
|
||||
"Map tiles": "Teselas del mapa",
|
||||
"Tile source": "Origen de las teselas",
|
||||
"URL template": "Plantilla de URL",
|
||||
"Attribution": "Atribución",
|
||||
"Max zoom": "Zoom máximo",
|
||||
"© the provider": "© el proveedor",
|
||||
"Max zoom is a whole number from 0 to 24": "El zoom máximo es un número entero de 0 a 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Un servidor de teselas ve qué teselas miras (o sea, más o menos qué lugares), tu dirección IP y el nombre y la versión de LightCraft; nada más sale del equipo. Sin conexión no descarga nada. La dirección de un servidor propio puede llevar tu clave, bajo tu responsabilidad.",
|
||||
"Tile cache": "Caché de teselas",
|
||||
"About map tiles and privacy (docs/map.md)": "Sobre las teselas y la privacidad (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Las teselas están desactivadas (Ajustes › Mapa)"
|
||||
}
|
||||
|
||||
@@ -336,5 +336,6 @@
|
||||
"Track {n}": "Reitti {n}",
|
||||
"camera time, UTC{o}": "kameran aika, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} niistä osuu reitin aikavälille",
|
||||
"{n} more tracks": "{n} reittiä lisää"
|
||||
"{n} more tracks": "{n} reittiä lisää",
|
||||
"{size} MB, {n} tiles": "{size} Mt, {n} ruutua"
|
||||
}
|
||||
|
||||
@@ -2510,5 +2510,21 @@
|
||||
"Clear Tracklog": "Tyhjennä reittiloki",
|
||||
"Tagged 1 photo from the tracklog": "1 kuva merkitty reittilokista",
|
||||
"Auto-Tag Photos from Map Tracklog": "Merkitse kuvat kartan reittilokista",
|
||||
"Map Tracklog": "Kartan reittiloki"
|
||||
"Map Tracklog": "Kartan reittiloki",
|
||||
"Map Pins": "Kartan nastat",
|
||||
"Saved Locations List": "Tallennettujen sijaintien luettelo",
|
||||
"Map Tiles…": "Karttaruudut…",
|
||||
"Hide Pins": "Piilota nastat",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Piilota kuvien nastat (H); tallennetut sijainnit ja reittiloki jäävät",
|
||||
"Map tiles": "Karttaruudut",
|
||||
"Tile source": "Ruutujen lähde",
|
||||
"URL template": "URL-malli",
|
||||
"Attribution": "Lähdemerkintä",
|
||||
"Max zoom": "Suurin zoom",
|
||||
"© the provider": "© palveluntarjoaja",
|
||||
"Max zoom is a whole number from 0 to 24": "Suurin zoom on kokonaisluku 0–24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Ruutupalvelin näkee, mitä ruutuja katsot (eli suunnilleen mitä paikkoja), IP-osoitteesi sekä LightCraftin nimen ja version; mitään muuta ei lähde koneelta. Offline ei lataa mitään. Oman palvelimen osoitteessa voi olla oma avaimesi omalla vastuullasi.",
|
||||
"Tile cache": "Ruutuvälimuisti",
|
||||
"About map tiles and privacy (docs/map.md)": "Karttaruuduista ja yksityisyydestä (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Karttaruudut ovat pois (Asetukset › Kartta)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "Tracé {n}",
|
||||
"camera time, UTC{o}": "heure de l'appareil, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} d'entre elles tombent dans la plage horaire du tracé",
|
||||
"{n} more tracks": "{n} autres tracés"
|
||||
"{n} more tracks": "{n} autres tracés",
|
||||
"{size} MB, {n} tiles": "{size} Mo, {n} tuiles"
|
||||
}
|
||||
|
||||
@@ -3736,5 +3736,21 @@
|
||||
"Clear Tracklog": "Effacer le tracé",
|
||||
"Tagged 1 photo from the tracklog": "1 photo située d'après le tracé",
|
||||
"Auto-Tag Photos from Map Tracklog": "Situer les photos d'après le tracé de la carte",
|
||||
"Map Tracklog": "Tracé de la carte"
|
||||
"Map Tracklog": "Tracé de la carte",
|
||||
"Map Pins": "Repères de la carte",
|
||||
"Saved Locations List": "Liste des lieux enregistrés",
|
||||
"Map Tiles…": "Tuiles de la carte…",
|
||||
"Hide Pins": "Masquer les repères",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Masquer les repères des photos (H) ; les lieux enregistrés et le tracé restent",
|
||||
"Map tiles": "Tuiles de la carte",
|
||||
"Tile source": "Source des tuiles",
|
||||
"URL template": "Modèle d'URL",
|
||||
"Attribution": "Attribution",
|
||||
"Max zoom": "Zoom max.",
|
||||
"© the provider": "© le fournisseur",
|
||||
"Max zoom is a whole number from 0 to 24": "Le zoom max. est un nombre entier de 0 à 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Un serveur de tuiles voit les tuiles que vous regardez (donc à peu près quels lieux), votre adresse IP et le nom et la version de LightCraft ; rien d'autre ne quitte la machine. Hors ligne ne télécharge rien. L'adresse d'un serveur personnalisé peut contenir votre propre clé, sous votre responsabilité.",
|
||||
"Tile cache": "Cache des tuiles",
|
||||
"About map tiles and privacy (docs/map.md)": "À propos des tuiles et de la confidentialité (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Les tuiles sont désactivées (Réglages › Carte)"
|
||||
}
|
||||
|
||||
@@ -339,5 +339,6 @@
|
||||
"Track {n}": "Jejak {n}",
|
||||
"camera time, UTC{o}": "waktu kamera, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} di antaranya dalam rentang waktu jejak",
|
||||
"{n} more tracks": "{n} jejak lagi"
|
||||
"{n} more tracks": "{n} jejak lagi",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} ubin"
|
||||
}
|
||||
|
||||
@@ -2525,5 +2525,21 @@
|
||||
"Clear Tracklog": "Hapus Log Jejak",
|
||||
"Tagged 1 photo from the tracklog": "1 foto ditandai dari log jejak",
|
||||
"Auto-Tag Photos from Map Tracklog": "Tandai Foto dari Log Jejak Peta",
|
||||
"Map Tracklog": "Log Jejak Peta"
|
||||
"Map Tracklog": "Log Jejak Peta",
|
||||
"Map Pins": "Pin Peta",
|
||||
"Saved Locations List": "Daftar Lokasi Tersimpan",
|
||||
"Map Tiles…": "Ubin Peta…",
|
||||
"Hide Pins": "Sembunyikan Pin",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Sembunyikan pin foto (H); lokasi tersimpan dan log jejak tetap",
|
||||
"Map tiles": "Ubin peta",
|
||||
"Tile source": "Sumber ubin",
|
||||
"URL template": "Templat URL",
|
||||
"Attribution": "Atribusi",
|
||||
"Max zoom": "Zoom maks.",
|
||||
"© the provider": "© penyedia",
|
||||
"Max zoom is a whole number from 0 to 24": "Zoom maks. adalah bilangan bulat 0 sampai 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Server ubin melihat ubin yang Anda lihat (jadi kira-kira tempat mana), alamat IP Anda, serta nama dan versi LightCraft; tidak ada lagi yang keluar dari komputer. Offline tidak mengambil apa pun. Alamat server kustom boleh memuat kunci Anda sendiri, atas tanggung jawab Anda.",
|
||||
"Tile cache": "Cache ubin",
|
||||
"About map tiles and privacy (docs/map.md)": "Tentang ubin peta dan privasi (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Ubin peta mati (Pengaturan › Peta)"
|
||||
}
|
||||
|
||||
@@ -339,5 +339,6 @@
|
||||
"Track {n}": "Tracciato {n}",
|
||||
"camera time, UTC{o}": "ora della fotocamera, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} di esse rientrano nell'intervallo del tracciato",
|
||||
"{n} more tracks": "altri {n} tracciati"
|
||||
"{n} more tracks": "altri {n} tracciati",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} tessere"
|
||||
}
|
||||
|
||||
@@ -2717,5 +2717,21 @@
|
||||
"Clear Tracklog": "Rimuovi tracciato",
|
||||
"Tagged 1 photo from the tracklog": "1 foto posizionata dal tracciato",
|
||||
"Auto-Tag Photos from Map Tracklog": "Posiziona le foto dal tracciato della mappa",
|
||||
"Map Tracklog": "Tracciato della mappa"
|
||||
"Map Tracklog": "Tracciato della mappa",
|
||||
"Map Pins": "Segnaposto della mappa",
|
||||
"Saved Locations List": "Elenco delle posizioni salvate",
|
||||
"Map Tiles…": "Tessere della mappa…",
|
||||
"Hide Pins": "Nascondi segnaposto",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Nascondi i segnaposto delle foto (H); posizioni salvate e tracciato restano",
|
||||
"Map tiles": "Tessere della mappa",
|
||||
"Tile source": "Origine delle tessere",
|
||||
"URL template": "Modello URL",
|
||||
"Attribution": "Attribuzione",
|
||||
"Max zoom": "Zoom massimo",
|
||||
"© the provider": "© il fornitore",
|
||||
"Max zoom is a whole number from 0 to 24": "Lo zoom massimo è un numero intero da 0 a 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Un server di tessere vede quali tessere guardi (quindi più o meno quali luoghi), il tuo indirizzo IP e nome e versione di LightCraft; nient'altro lascia il computer. Offline non scarica nulla. L'indirizzo di un server personalizzato può contenere la tua chiave, a tua responsabilità.",
|
||||
"Tile cache": "Cache delle tessere",
|
||||
"About map tiles and privacy (docs/map.md)": "Tessere della mappa e privacy (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Le tessere sono disattivate (Impostazioni › Mappa)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "トラック {n}",
|
||||
"camera time, UTC{o}": "カメラの時刻、UTC{o}",
|
||||
"{m} of them fall within the track's time range": "そのうち {m} 枚がトラックの時間範囲内です",
|
||||
"{n} more tracks": "ほか {n} 件のトラック"
|
||||
"{n} more tracks": "ほか {n} 件のトラック",
|
||||
"{size} MB, {n} tiles": "{size} MB、{n} タイル"
|
||||
}
|
||||
|
||||
@@ -2552,5 +2552,21 @@
|
||||
"Clear Tracklog": "トラックログを消去",
|
||||
"Tagged 1 photo from the tracklog": "トラックログから 1 枚の写真にタグを付けました",
|
||||
"Auto-Tag Photos from Map Tracklog": "マップのトラックログから写真に自動タグ付け",
|
||||
"Map Tracklog": "マップのトラックログ"
|
||||
"Map Tracklog": "マップのトラックログ",
|
||||
"Map Pins": "マップのピン",
|
||||
"Saved Locations List": "保存場所の一覧",
|
||||
"Map Tiles…": "マップタイル…",
|
||||
"Hide Pins": "ピンを隠す",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "写真のピンを隠します(H)。保存場所とトラックログは残ります",
|
||||
"Map tiles": "マップタイル",
|
||||
"Tile source": "タイルの提供元",
|
||||
"URL template": "URL テンプレート",
|
||||
"Attribution": "帰属表示",
|
||||
"Max zoom": "最大ズーム",
|
||||
"© the provider": "© 提供元",
|
||||
"Max zoom is a whole number from 0 to 24": "最大ズームは 0〜24 の整数です",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "タイルサーバーには、見ているタイル(つまりおおよその場所)、IP アドレス、LightCraft の名前とバージョンが伝わります。それ以外はコンピューターから出ません。オフラインでは何も取得しません。カスタムサーバーのアドレスに自分のキーを含めるのは自己責任です。",
|
||||
"Tile cache": "タイルキャッシュ",
|
||||
"About map tiles and privacy (docs/map.md)": "マップタイルとプライバシーについて(docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "マップタイルはオフです(設定 › マップ)"
|
||||
}
|
||||
|
||||
@@ -342,5 +342,6 @@
|
||||
"Track {n}": "ტრეკი {n}",
|
||||
"camera time, UTC{o}": "კამერის დრო, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "მათგან {m} ხვდება ტრეკის დროის შუალედში",
|
||||
"{n} more tracks": "კიდევ {n} ტრეკი"
|
||||
"{n} more tracks": "კიდევ {n} ტრეკი",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} ფილა"
|
||||
}
|
||||
|
||||
@@ -3819,5 +3819,21 @@
|
||||
"Clear Tracklog": "ტრეკლოგის გასუფთავება",
|
||||
"Tagged 1 photo from the tracklog": "ტრეკლოგიდან მონიშნულია 1 ფოტო",
|
||||
"Auto-Tag Photos from Map Tracklog": "ფოტოების ავტომონიშვნა რუკის ტრეკლოგიდან",
|
||||
"Map Tracklog": "რუკის ტრეკლოგი"
|
||||
"Map Tracklog": "რუკის ტრეკლოგი",
|
||||
"Map Pins": "რუკის ქინძისთავები",
|
||||
"Saved Locations List": "შენახული ადგილების სია",
|
||||
"Map Tiles…": "რუკის ფილები…",
|
||||
"Hide Pins": "ქინძისთავების დამალვა",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "ფოტოების ქინძისთავების დამალვა (H); შენახული ადგილები და ტრეკლოგი რჩება",
|
||||
"Map tiles": "რუკის ფილები",
|
||||
"Tile source": "ფილების წყარო",
|
||||
"URL template": "URL შაბლონი",
|
||||
"Attribution": "ატრიბუცია",
|
||||
"Max zoom": "მაქს. მასშტაბი",
|
||||
"© the provider": "© მომწოდებელი",
|
||||
"Max zoom is a whole number from 0 to 24": "მაქს. მასშტაბი არის მთელი რიცხვი 0-დან 24-მდე",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "ფილების სერვერი ხედავს, რომელ ფილებს უყურებთ (ანუ დაახლოებით რომელ ადგილებს), თქვენს IP მისამართს და LightCraft-ის სახელსა და ვერსიას; სხვა არაფერი გადის კომპიუტერიდან. ოფლაინ რეჟიმი არაფერს იწერს. საკუთარი სერვერის მისამართი შეიძლება შეიცავდეს თქვენს გასაღებს, თქვენივე პასუხისმგებლობით.",
|
||||
"Tile cache": "ფილების ქეში",
|
||||
"About map tiles and privacy (docs/map.md)": "რუკის ფილებისა და კონფიდენციალურობის შესახებ (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "რუკის ფილები გამორთულია (პარამეტრები › რუკა)"
|
||||
}
|
||||
|
||||
@@ -339,5 +339,6 @@
|
||||
"Track {n}": "Ślad {n}",
|
||||
"camera time, UTC{o}": "czas aparatu, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} z nich mieści się w zakresie czasu śladu",
|
||||
"{n} more tracks": "jeszcze śladów: {n}"
|
||||
"{n} more tracks": "jeszcze śladów: {n}",
|
||||
"{size} MB, {n} tiles": "{size} MB, kafelków: {n}"
|
||||
}
|
||||
|
||||
@@ -2477,5 +2477,21 @@
|
||||
"Clear Tracklog": "Wyczyść ślad",
|
||||
"Tagged 1 photo from the tracklog": "Oznaczono 1 zdjęcie ze śladu",
|
||||
"Auto-Tag Photos from Map Tracklog": "Oznacz zdjęcia ze śladu na mapie",
|
||||
"Map Tracklog": "Ślad na mapie"
|
||||
"Map Tracklog": "Ślad na mapie",
|
||||
"Map Pins": "Pinezki na mapie",
|
||||
"Saved Locations List": "Lista zapisanych lokalizacji",
|
||||
"Map Tiles…": "Kafelki mapy…",
|
||||
"Hide Pins": "Ukryj pinezki",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Ukryj pinezki zdjęć (H); zapisane lokalizacje i ślad zostają",
|
||||
"Map tiles": "Kafelki mapy",
|
||||
"Tile source": "Źródło kafelków",
|
||||
"URL template": "Szablon URL",
|
||||
"Attribution": "Atrybucja",
|
||||
"Max zoom": "Maks. powiększenie",
|
||||
"© the provider": "© dostawca",
|
||||
"Max zoom is a whole number from 0 to 24": "Maks. powiększenie to liczba całkowita od 0 do 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Serwer kafelków widzi, które kafelki oglądasz (czyli mniej więcej które miejsca), Twój adres IP oraz nazwę i wersję LightCraft; nic więcej nie opuszcza komputera. Tryb offline niczego nie pobiera. Adres własnego serwera może zawierać Twój klucz, na Twoją odpowiedzialność.",
|
||||
"Tile cache": "Pamięć podręczna kafelków",
|
||||
"About map tiles and privacy (docs/map.md)": "O kafelkach mapy i prywatności (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Kafelki mapy są wyłączone (Ustawienia › Mapa)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "Trajeto {n}",
|
||||
"camera time, UTC{o}": "hora da câmera, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} delas caem no intervalo do trajeto",
|
||||
"{n} more tracks": "mais {n} trajetos"
|
||||
"{n} more tracks": "mais {n} trajetos",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} blocos"
|
||||
}
|
||||
|
||||
@@ -2398,5 +2398,21 @@
|
||||
"Clear Tracklog": "Limpar registro de trajeto",
|
||||
"Tagged 1 photo from the tracklog": "1 foto marcada pelo registro de trajeto",
|
||||
"Auto-Tag Photos from Map Tracklog": "Marcar fotos pelo registro de trajeto do mapa",
|
||||
"Map Tracklog": "Registro de trajeto do mapa"
|
||||
"Map Tracklog": "Registro de trajeto do mapa",
|
||||
"Map Pins": "Marcadores do mapa",
|
||||
"Saved Locations List": "Lista de locais salvos",
|
||||
"Map Tiles…": "Blocos do mapa…",
|
||||
"Hide Pins": "Ocultar marcadores",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Ocultar os marcadores das fotos (H); locais salvos e o registro de trajeto ficam",
|
||||
"Map tiles": "Blocos do mapa",
|
||||
"Tile source": "Origem dos blocos",
|
||||
"URL template": "Modelo de URL",
|
||||
"Attribution": "Atribuição",
|
||||
"Max zoom": "Zoom máximo",
|
||||
"© the provider": "© o provedor",
|
||||
"Max zoom is a whole number from 0 to 24": "O zoom máximo é um número inteiro de 0 a 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Um servidor de blocos vê quais blocos você olha (ou seja, mais ou menos quais lugares), seu endereço IP e o nome e a versão do LightCraft; nada mais sai do computador. Offline não baixa nada. O endereço de um servidor próprio pode levar sua chave, por sua conta.",
|
||||
"Tile cache": "Cache de blocos",
|
||||
"About map tiles and privacy (docs/map.md)": "Sobre blocos do mapa e privacidade (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Os blocos do mapa estão desligados (Configurações › Mapa)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "Трек {n}",
|
||||
"camera time, UTC{o}": "время камеры, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} из них попадают во время трека",
|
||||
"{n} more tracks": "ещё треков: {n}"
|
||||
"{n} more tracks": "ещё треков: {n}",
|
||||
"{size} MB, {n} tiles": "{size} МБ, тайлов: {n}"
|
||||
}
|
||||
|
||||
@@ -2759,5 +2759,21 @@
|
||||
"Clear Tracklog": "Убрать трек",
|
||||
"Tagged 1 photo from the tracklog": "По треку привязано 1 фото",
|
||||
"Auto-Tag Photos from Map Tracklog": "Привязать фото по треку карты",
|
||||
"Map Tracklog": "Трек на карте"
|
||||
"Map Tracklog": "Трек на карте",
|
||||
"Map Pins": "Маркеры на карте",
|
||||
"Saved Locations List": "Список сохранённых мест",
|
||||
"Map Tiles…": "Тайлы карты…",
|
||||
"Hide Pins": "Скрыть маркеры",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Скрыть маркеры фото (H); сохранённые места и трек остаются",
|
||||
"Map tiles": "Тайлы карты",
|
||||
"Tile source": "Источник тайлов",
|
||||
"URL template": "Шаблон URL",
|
||||
"Attribution": "Атрибуция",
|
||||
"Max zoom": "Макс. масштаб",
|
||||
"© the provider": "© поставщик",
|
||||
"Max zoom is a whole number from 0 to 24": "Макс. масштаб — целое число от 0 до 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Сервер тайлов видит, какие тайлы вы смотрите (то есть примерно какие места), ваш IP-адрес, а также название и версию LightCraft; больше ничего не покидает компьютер. «Офлайн» ничего не загружает. Адрес своего сервера может содержать ваш ключ — под вашу ответственность.",
|
||||
"Tile cache": "Кэш тайлов",
|
||||
"About map tiles and privacy (docs/map.md)": "О тайлах карты и конфиденциальности (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Тайлы карты выключены (Настройки › Карта)"
|
||||
}
|
||||
|
||||
@@ -339,5 +339,6 @@
|
||||
"Track {n}": "Spår {n}",
|
||||
"camera time, UTC{o}": "kamerans tid, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} av dem faller inom spårets tidsintervall",
|
||||
"{n} more tracks": "{n} spår till"
|
||||
"{n} more tracks": "{n} spår till",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} rutor"
|
||||
}
|
||||
|
||||
@@ -2614,5 +2614,21 @@
|
||||
"Clear Tracklog": "Rensa spårlogg",
|
||||
"Tagged 1 photo from the tracklog": "1 foto platsmärkt från spårloggen",
|
||||
"Auto-Tag Photos from Map Tracklog": "Platsmärk foton från kartans spårlogg",
|
||||
"Map Tracklog": "Kartans spårlogg"
|
||||
"Map Tracklog": "Kartans spårlogg",
|
||||
"Map Pins": "Kartnålar",
|
||||
"Saved Locations List": "Lista över sparade platser",
|
||||
"Map Tiles…": "Kartrutor…",
|
||||
"Hide Pins": "Dölj nålar",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Dölj fotonålarna (H); sparade platser och spårloggen finns kvar",
|
||||
"Map tiles": "Kartrutor",
|
||||
"Tile source": "Rutkälla",
|
||||
"URL template": "URL-mall",
|
||||
"Attribution": "Tillskrivning",
|
||||
"Max zoom": "Max zoom",
|
||||
"© the provider": "© leverantören",
|
||||
"Max zoom is a whole number from 0 to 24": "Max zoom är ett heltal från 0 till 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "En ruteserver ser vilka rutor du tittar på (alltså ungefär vilka platser), din IP-adress samt LightCrafts namn och version; inget annat lämnar datorn. Offline hämtar ingenting. En egen servers adress kan innehålla din egen nyckel, på eget ansvar.",
|
||||
"Tile cache": "Rutcache",
|
||||
"About map tiles and privacy (docs/map.md)": "Om kartrutor och integritet (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Kartrutor är av (Inställningar › Karta)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "Трек {n}",
|
||||
"camera time, UTC{o}": "час камери, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} з них потрапляють у час треку",
|
||||
"{n} more tracks": "ще треків: {n}"
|
||||
"{n} more tracks": "ще треків: {n}",
|
||||
"{size} MB, {n} tiles": "{size} МБ, тайлів: {n}"
|
||||
}
|
||||
|
||||
@@ -2550,5 +2550,21 @@
|
||||
"Clear Tracklog": "Прибрати трек",
|
||||
"Tagged 1 photo from the tracklog": "За треком прив'язано 1 фото",
|
||||
"Auto-Tag Photos from Map Tracklog": "Прив'язати фото за треком карти",
|
||||
"Map Tracklog": "Трек на карті"
|
||||
"Map Tracklog": "Трек на карті",
|
||||
"Map Pins": "Маркери на карті",
|
||||
"Saved Locations List": "Список збережених місць",
|
||||
"Map Tiles…": "Тайли карти…",
|
||||
"Hide Pins": "Сховати маркери",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Сховати маркери фото (H); збережені місця й трек лишаються",
|
||||
"Map tiles": "Тайли карти",
|
||||
"Tile source": "Джерело тайлів",
|
||||
"URL template": "Шаблон URL",
|
||||
"Attribution": "Атрибуція",
|
||||
"Max zoom": "Макс. масштаб",
|
||||
"© the provider": "© постачальник",
|
||||
"Max zoom is a whole number from 0 to 24": "Макс. масштаб — ціле число від 0 до 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Сервер тайлів бачить, які тайли ви переглядаєте (тобто приблизно які місця), вашу IP-адресу, назву й версію LightCraft; більше нічого не залишає комп'ютер. «Офлайн» нічого не завантажує. Адреса власного сервера може містити ваш ключ — на вашу відповідальність.",
|
||||
"Tile cache": "Кеш тайлів",
|
||||
"About map tiles and privacy (docs/map.md)": "Про тайли карти й приватність (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Тайли карти вимкнено (Налаштування › Карта)"
|
||||
}
|
||||
|
||||
@@ -336,5 +336,6 @@
|
||||
"Track {n}": "Hành trình {n}",
|
||||
"camera time, UTC{o}": "giờ máy ảnh, UTC{o}",
|
||||
"{m} of them fall within the track's time range": "{m} ảnh nằm trong khoảng thời gian của hành trình",
|
||||
"{n} more tracks": "thêm {n} hành trình"
|
||||
"{n} more tracks": "thêm {n} hành trình",
|
||||
"{size} MB, {n} tiles": "{size} MB, {n} ô"
|
||||
}
|
||||
|
||||
@@ -2838,5 +2838,21 @@
|
||||
"Clear Tracklog": "Xóa nhật ký hành trình",
|
||||
"Tagged 1 photo from the tracklog": "Đã gắn vị trí 1 ảnh từ nhật ký hành trình",
|
||||
"Auto-Tag Photos from Map Tracklog": "Gắn vị trí ảnh từ nhật ký hành trình trên bản đồ",
|
||||
"Map Tracklog": "Nhật ký hành trình trên bản đồ"
|
||||
"Map Tracklog": "Nhật ký hành trình trên bản đồ",
|
||||
"Map Pins": "Ghim trên bản đồ",
|
||||
"Saved Locations List": "Danh sách vị trí đã lưu",
|
||||
"Map Tiles…": "Ô bản đồ…",
|
||||
"Hide Pins": "Ẩn ghim",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "Ẩn ghim ảnh (H); vị trí đã lưu và nhật ký hành trình vẫn hiện",
|
||||
"Map tiles": "Ô bản đồ",
|
||||
"Tile source": "Nguồn ô bản đồ",
|
||||
"URL template": "Mẫu URL",
|
||||
"Attribution": "Ghi nguồn",
|
||||
"Max zoom": "Thu phóng tối đa",
|
||||
"© the provider": "© nhà cung cấp",
|
||||
"Max zoom is a whole number from 0 to 24": "Thu phóng tối đa là số nguyên từ 0 đến 24",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "Máy chủ ô bản đồ thấy những ô bạn xem (tức là đại khái những nơi nào), địa chỉ IP của bạn, tên và phiên bản LightCraft; không có gì khác rời khỏi máy. Ngoại tuyến không tải gì. Địa chỉ máy chủ tùy chỉnh có thể chứa khóa của bạn, tự bạn chịu trách nhiệm.",
|
||||
"Tile cache": "Bộ đệm ô bản đồ",
|
||||
"About map tiles and privacy (docs/map.md)": "Về ô bản đồ và quyền riêng tư (docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "Ô bản đồ đang tắt (Cài đặt › Bản đồ)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "轨迹 {n}",
|
||||
"camera time, UTC{o}": "相机时间,UTC{o}",
|
||||
"{m} of them fall within the track's time range": "其中 {m} 张在轨迹的时间范围内",
|
||||
"{n} more tracks": "还有 {n} 条轨迹"
|
||||
"{n} more tracks": "还有 {n} 条轨迹",
|
||||
"{size} MB, {n} tiles": "{size} MB,{n} 个图块"
|
||||
}
|
||||
|
||||
@@ -2553,5 +2553,21 @@
|
||||
"Clear Tracklog": "清除轨迹记录",
|
||||
"Tagged 1 photo from the tracklog": "已根据轨迹记录标记 1 张照片",
|
||||
"Auto-Tag Photos from Map Tracklog": "根据地图轨迹记录自动标记照片",
|
||||
"Map Tracklog": "地图轨迹记录"
|
||||
"Map Tracklog": "地图轨迹记录",
|
||||
"Map Pins": "地图图钉",
|
||||
"Saved Locations List": "已存位置列表",
|
||||
"Map Tiles…": "地图图块…",
|
||||
"Hide Pins": "隐藏图钉",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "隐藏照片图钉(H);已存位置和轨迹记录保留",
|
||||
"Map tiles": "地图图块",
|
||||
"Tile source": "图块来源",
|
||||
"URL template": "URL 模板",
|
||||
"Attribution": "署名",
|
||||
"Max zoom": "最大缩放",
|
||||
"© the provider": "© 提供方",
|
||||
"Max zoom is a whole number from 0 to 24": "最大缩放为 0 到 24 的整数",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "图块服务器会看到你查看的图块(也就是大致的地点)、你的 IP 地址以及 LightCraft 的名称和版本;其他内容不会离开本机。离线不获取任何内容。自定义服务器地址可以带上你自己的密钥,责任自负。",
|
||||
"Tile cache": "图块缓存",
|
||||
"About map tiles and privacy (docs/map.md)": "关于地图图块与隐私(docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "地图图块已关闭(设置 › 地图)"
|
||||
}
|
||||
|
||||
@@ -340,5 +340,6 @@
|
||||
"Track {n}": "軌跡 {n}",
|
||||
"camera time, UTC{o}": "相機時間,UTC{o}",
|
||||
"{m} of them fall within the track's time range": "其中 {m} 張在軌跡的時間範圍內",
|
||||
"{n} more tracks": "還有 {n} 條軌跡"
|
||||
"{n} more tracks": "還有 {n} 條軌跡",
|
||||
"{size} MB, {n} tiles": "{size} MB,{n} 個圖磚"
|
||||
}
|
||||
|
||||
@@ -2554,5 +2554,21 @@
|
||||
"Clear Tracklog": "清除軌跡記錄",
|
||||
"Tagged 1 photo from the tracklog": "已根據軌跡記錄標記 1 張照片",
|
||||
"Auto-Tag Photos from Map Tracklog": "根據地圖軌跡記錄自動標記照片",
|
||||
"Map Tracklog": "地圖軌跡記錄"
|
||||
"Map Tracklog": "地圖軌跡記錄",
|
||||
"Map Pins": "地圖圖釘",
|
||||
"Saved Locations List": "已存位置清單",
|
||||
"Map Tiles…": "地圖圖磚…",
|
||||
"Hide Pins": "隱藏圖釘",
|
||||
"Hide the photo pins (H); saved locations and the track log stay": "隱藏照片圖釘(H);已存位置和軌跡記錄保留",
|
||||
"Map tiles": "地圖圖磚",
|
||||
"Tile source": "圖磚來源",
|
||||
"URL template": "URL 範本",
|
||||
"Attribution": "署名",
|
||||
"Max zoom": "最大縮放",
|
||||
"© the provider": "© 提供者",
|
||||
"Max zoom is a whole number from 0 to 24": "最大縮放為 0 到 24 的整數",
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.": "圖磚伺服器會看到你查看的圖磚(也就是大致的地點)、你的 IP 位址以及 LightCraft 的名稱和版本;其他內容不會離開本機。離線不擷取任何內容。自訂伺服器位址可以帶上你自己的金鑰,責任自負。",
|
||||
"Tile cache": "圖磚快取",
|
||||
"About map tiles and privacy (docs/map.md)": "關於地圖圖磚與隱私(docs/map.md)",
|
||||
"Map tiles are off (Settings › Map)": "地圖圖磚已關閉(設定 › 地圖)"
|
||||
}
|
||||
|
||||
@@ -6,10 +6,139 @@ use super::{LightcraftApp, RichText, Tokens, json, register};
|
||||
/// Where users get an ArcGIS Location Platform API key (free tier).
|
||||
const ARCGIS_SIGN_UP: &str = "https://location.arcgis.com";
|
||||
|
||||
/// Settings ▸ Map: the ArcGIS API key the Esri layers need. The key typed here is applied with
|
||||
/// Apply or Return (never while typing), then the field empties: the key is never shown again,
|
||||
/// only whether one is set. It is kept outside `ui.json` and the library (`map.setEsriKey`).
|
||||
/// The project's map documentation (sources, the OSM policy, Esri, privacy).
|
||||
const MAP_DOCS: &str = "https://github.com/storytold/lightcraft/blob/main/docs/map.md";
|
||||
|
||||
/// What Settings ▸ Map remembers between frames (egui temporary memory: never saved): the custom
|
||||
/// server's fields as typed, the last refusal, and the cache size with when it was measured.
|
||||
#[derive(Clone, Default)]
|
||||
struct MapDraft {
|
||||
template: String,
|
||||
attribution: String,
|
||||
max_zoom: String,
|
||||
/// The fields were filled from the current custom source (once, when the tab opened).
|
||||
seeded: bool,
|
||||
error: Option<String>,
|
||||
cache: Option<(u64, u64, f64)>,
|
||||
}
|
||||
|
||||
/// Settings ▸ Map: where tiles come from (the built-in sources, Offline, or a custom server applied
|
||||
/// with Apply or Return, never while typing; a refused one shows why and changes nothing), the tile
|
||||
/// cache's size with Clear Cache, what the tile server sees, then the Esri key. (After PR #921's
|
||||
/// map settings, Jason Baldwin.)
|
||||
pub(super) fn map_tab(app: &mut LightcraftApp, ui: &mut egui::Ui, t: &Tokens) {
|
||||
let id = egui::Id::unique("settings:mapDraft");
|
||||
let mut d: MapDraft = ui.data_mut(|m| m.get_temp::<MapDraft>(id)).unwrap_or_default();
|
||||
if !d.seeded {
|
||||
if let lightcraft_engine::map::TileSource::Custom { url_template, attribution, max_zoom, .. } = app.session.map.source() {
|
||||
d.template = url_template.clone();
|
||||
d.attribution = attribution.clone();
|
||||
d.max_zoom = max_zoom.to_string();
|
||||
}
|
||||
d.seeded = true;
|
||||
}
|
||||
heading(ui, t, crate::i18n::tr("Map tiles"));
|
||||
let current = app.session.map.effective_source();
|
||||
let custom_now = matches!(current, lightcraft_engine::map::TileSource::Custom { .. });
|
||||
let mut chosen: Option<String> = None;
|
||||
row(ui, t, crate::i18n::tr("Tile source"), |ui| {
|
||||
ui.horizontal_wrapped(|ui| {
|
||||
for s in app.session.map.offered() {
|
||||
let r = ui.radio(s == current, crate::i18n::tr(s.label()));
|
||||
register(ui, format!("settings:mapSource:{}", s.id()), r.rect);
|
||||
if r.clicked() && s != current {
|
||||
chosen = Some(s.id().to_string());
|
||||
}
|
||||
}
|
||||
let r = ui.radio(custom_now, crate::i18n::tr("Custom tile server"));
|
||||
register(ui, "settings:mapSource:custom", r.rect);
|
||||
});
|
||||
});
|
||||
if let Some(s) = chosen {
|
||||
match app.run("map.tileSource", json!({"id": s})) {
|
||||
Ok(_) => d.error = None,
|
||||
Err(e) => d.error = Some(e),
|
||||
}
|
||||
}
|
||||
// the custom server: applied on Apply or Return only
|
||||
let mut apply = false;
|
||||
row(ui, t, crate::i18n::tr("URL template"), |ui| {
|
||||
let r =
|
||||
field(ui, crate::text_field::TextField::singleline("field:mapTemplate", &mut d.template).hint("https://…/{z}/{x}/{y}.png").width(320.0));
|
||||
apply |= matches!(r.ending, Some(crate::text_field::Ending::Return));
|
||||
});
|
||||
row(ui, t, crate::i18n::tr("Attribution"), |ui| {
|
||||
let r = field(
|
||||
ui,
|
||||
crate::text_field::TextField::singleline("field:mapAttribution", &mut d.attribution).hint(crate::i18n::tr("© the provider")).width(320.0),
|
||||
);
|
||||
apply |= matches!(r.ending, Some(crate::text_field::Ending::Return));
|
||||
});
|
||||
row(ui, t, crate::i18n::tr("Max zoom"), |ui| {
|
||||
let r = field(ui, crate::text_field::TextField::singleline("field:mapMaxZoom", &mut d.max_zoom).hint("18").width(60.0));
|
||||
apply |= matches!(r.ending, Some(crate::text_field::Ending::Return));
|
||||
let b = ui.add_enabled(!d.template.trim().is_empty(), egui::Button::new(crate::i18n::tr("Apply")));
|
||||
register(ui, "button:mapCustomApply", b.rect);
|
||||
apply |= b.clicked();
|
||||
});
|
||||
if apply && !d.template.trim().is_empty() {
|
||||
let zoom = d.max_zoom.trim();
|
||||
let mut p = json!({"urlTemplate": d.template.trim(), "attribution": d.attribution.trim()});
|
||||
let bad_zoom = !zoom.is_empty() && zoom.parse::<u8>().is_err();
|
||||
if let Ok(z) = zoom.parse::<u8>() {
|
||||
p["maxZoom"] = json!(z);
|
||||
}
|
||||
d.error =
|
||||
if bad_zoom { Some(crate::i18n::tr("Max zoom is a whole number from 0 to 24").to_string()) } else { app.run("map.tileSource", p).err() };
|
||||
}
|
||||
if let Some(e) = &d.error {
|
||||
let r = ui.label(RichText::new(e).size(11.5).color(t.caution));
|
||||
register(ui, "settings:mapError", r.rect);
|
||||
}
|
||||
hint(
|
||||
ui,
|
||||
t,
|
||||
crate::i18n::tr(
|
||||
"A tile server sees which tiles you look at (so roughly which places), your IP address and LightCraft's name and version; nothing else leaves the machine. Offline fetches nothing. A custom server's address may carry your own key, on your own responsibility.",
|
||||
),
|
||||
);
|
||||
// the cache, measured at most every 5 seconds (it walks the cache folder)
|
||||
let now = app.tick_now();
|
||||
if d.cache.is_none_or(|(_, _, at)| now - at > 5.0) {
|
||||
let info = app.session.execute("map.cacheInfo", &json!({})).unwrap_or_default();
|
||||
d.cache = Some((info["bytes"].as_u64().unwrap_or(0), info["tiles"].as_u64().unwrap_or(0), now));
|
||||
}
|
||||
let (bytes, tiles, _) = d.cache.unwrap_or_default();
|
||||
row(ui, t, crate::i18n::tr("Tile cache"), |ui| {
|
||||
let r = ui.label(crate::i18n::tr_format!("{size} MB, {n} tiles", size = format!("{:.1}", bytes as f64 / 1_048_576.0), n = tiles));
|
||||
register(ui, "settings:mapCacheSize", r.rect);
|
||||
let b = ui.add_enabled(tiles > 0, egui::Button::new(crate::i18n::tr("Clear Cache")));
|
||||
register(ui, "button:mapClearCache", b.rect);
|
||||
if b.clicked() {
|
||||
if let Err(e) = app.run("map.clearCache", json!({})) {
|
||||
app.toast(ui.ctx(), e);
|
||||
}
|
||||
d.cache = None;
|
||||
}
|
||||
});
|
||||
row(ui, t, "", |ui| {
|
||||
let r = ui.link(crate::i18n::tr("About map tiles and privacy (docs/map.md)"));
|
||||
register(ui, "link:mapDocs", r.rect);
|
||||
if r.clicked()
|
||||
&& let Err(e) = crate::links::open(app, MAP_DOCS)
|
||||
{
|
||||
app.toast(ui.ctx(), e);
|
||||
}
|
||||
});
|
||||
ui.data_mut(|m| m.insert_temp(id, d));
|
||||
ui.add_space(8.0);
|
||||
esri_key(app, ui, t);
|
||||
}
|
||||
|
||||
/// The ArcGIS API key the Esri layers need. The key typed here is applied with Apply or Return
|
||||
/// (never while typing), then the field empties: the key is never shown again, only whether one is
|
||||
/// set. It is kept outside `ui.json` and the library (`map.setEsriKey`).
|
||||
fn esri_key(app: &mut LightcraftApp, ui: &mut egui::Ui, t: &Tokens) {
|
||||
heading(ui, t, crate::i18n::tr("Esri map layers"));
|
||||
hint(
|
||||
ui,
|
||||
|
||||
@@ -194,6 +194,7 @@ const LAYOUT: &[(&str, &[&str])] = &[
|
||||
"view.survey",
|
||||
"view.people",
|
||||
"view.map",
|
||||
"@Map",
|
||||
"---",
|
||||
"view.leftPanel",
|
||||
"@Sidebar Sections",
|
||||
@@ -387,6 +388,55 @@ pub(crate) fn in_normal_album(app: &LightcraftApp) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// View ▸ Map: the Map view's commands (Lightroom Classic has a Map module with its own menus;
|
||||
/// LightCraft has one menu bar for every view, so they gather here, greyed outside the Map view).
|
||||
/// Each item runs its command, as its key does (the keys shown are the Map view's: ⌘K, H, O, `\`,
|
||||
/// `=` / `-`). Window ▸ Map keeps the panel toggles. (After PR #921's map menu, Jason Baldwin.)
|
||||
fn map_menu(app: &LightcraftApp) -> Vec<MenuNode> {
|
||||
use crate::panels::map::LocationFilterChoice;
|
||||
let u = &app.ui;
|
||||
let in_map = u.view == ViewMode::Map;
|
||||
let entry = |id: &str, label: &str, key: Option<&str>, enabled: bool| {
|
||||
let checked = checked(app, id);
|
||||
item(id, Value::Null, label, key, enabled, checked)
|
||||
};
|
||||
let filter = LocationFilterChoice::ALL
|
||||
.into_iter()
|
||||
.map(|(mode, label)| item("map.locationFilter", json!({"mode": mode.id()}), label, None, in_map, Some(u.map.filter == mode)))
|
||||
.collect();
|
||||
let track = app.session.map.track.is_some();
|
||||
vec![
|
||||
entry("map.fit", "Fit to Photos", Some("Cmd+0"), in_map),
|
||||
entry("map.zoomIn", "Zoom In on Map", Some("="), in_map),
|
||||
entry("map.zoomOut", "Zoom Out on Map", Some("-"), in_map),
|
||||
MenuNode::Separator,
|
||||
entry("map.showPins", "Map Pins", Some("H"), in_map),
|
||||
entry("map.lockMarkers", "Lock Markers", Some("Cmd+K"), in_map),
|
||||
item("map.filterBar", Value::Null, "Location Filter Bar", Some("\\"), in_map, Some(u.map.show_filter_bar)),
|
||||
MenuNode::Submenu { label: "Location Filter".into(), children: filter },
|
||||
MenuNode::Separator,
|
||||
MenuNode::Submenu {
|
||||
label: "Saved Locations".into(),
|
||||
children: vec![
|
||||
entry("map.location.new", "New Location…", None, in_map),
|
||||
entry("map.showLocations", "Saved Locations List", Some("O"), in_map),
|
||||
],
|
||||
},
|
||||
MenuNode::Submenu {
|
||||
label: "Tracklog".into(),
|
||||
children: vec![
|
||||
entry("map.loadTrackLog", "Load Tracklog…", None, true),
|
||||
entry("map.trackLog.autoTag", "Auto-Tag Photos from Map Tracklog", None, in_map && track),
|
||||
entry("map.trackLog.setOffset", "Set Time Zone Offset…", None, track),
|
||||
entry("map.trackLog.fit", "Fit Map to Tracklog", None, in_map && track),
|
||||
item("map.trackLog", json!({"clear": true}), "Clear Tracklog", None, track, None),
|
||||
],
|
||||
},
|
||||
MenuNode::Separator,
|
||||
entry("map.settings", "Map Tiles…", None, true),
|
||||
]
|
||||
}
|
||||
|
||||
fn item(id: &str, params: Value, label: impl Into<String>, shortcut: Option<&str>, enabled: bool, checked: Option<bool>) -> MenuNode {
|
||||
MenuNode::Item { id: id.into(), params, label: label.into(), shortcut: shortcut.map(str::to_string), enabled, checked }
|
||||
}
|
||||
@@ -412,6 +462,8 @@ pub fn checked(app: &LightcraftApp, id: &str) -> Option<bool> {
|
||||
"map.filterBar" | "view.toggleMapFilter" => Some(u.map.show_filter_bar),
|
||||
"map.legend" => Some(u.map.legend_open),
|
||||
"map.lock" | "map.toggleLock" | "map.lockMarkers" => Some(u.map.locked),
|
||||
"map.showPins" => Some(u.map.show_pins),
|
||||
"map.showLocations" => Some(u.map.navigator_open),
|
||||
"view.reference" => Some(u.view == ViewMode::Reference),
|
||||
"view.leftPanel" => Some(u.left_panel),
|
||||
"view.faceBoxes" => Some(u.face_boxes),
|
||||
@@ -887,6 +939,9 @@ pub fn menu_bar(app: &LightcraftApp) -> Vec<(String, Vec<MenuNode>)> {
|
||||
let mut items = Vec::new();
|
||||
let mut last = Vec::new();
|
||||
let sub = |name: &str, used: &mut [bool]| -> Vec<MenuNode> {
|
||||
if *title == "View" && name == "Map" {
|
||||
return map_menu(app);
|
||||
}
|
||||
let mut children = expanded(app, name).unwrap_or_default();
|
||||
let mut dialogs = Vec::new();
|
||||
for (i, e) in entries.iter().enumerate() {
|
||||
|
||||
@@ -381,6 +381,9 @@ fn ui_commands_2(app: &mut LightcraftApp, ctx: &egui::Context, id: &str, p: &Val
|
||||
| "map.toggleLock"
|
||||
| "map.lock"
|
||||
| "map.locationFilter"
|
||||
| "map.showPins"
|
||||
| "map.showLocations"
|
||||
| "map.settings"
|
||||
| "map.location.show"
|
||||
| "map.location.select"
|
||||
| "map.location.new"
|
||||
|
||||
@@ -82,6 +82,9 @@ pub const UI_COMMANDS: &[UiCommand] = &[
|
||||
("map.state", "Map State", None, ""),
|
||||
("map.fit", "Fit Map to Photos", None, ""),
|
||||
("map.locationFilter", "Location Filter", None, ""),
|
||||
("map.showPins", "Map Pins", None, ""),
|
||||
("map.showLocations", "Saved Locations List", None, ""),
|
||||
("map.settings", "Map Tiles…", None, ""),
|
||||
("map.location.show", "Go to Saved Location", None, ""),
|
||||
("map.location.select", "Select Photos in Saved Location", None, ""),
|
||||
("map.location.new", "New Location…", None, ""),
|
||||
|
||||
@@ -161,6 +161,18 @@ fn choose_location(m: &mut crate::state::MapUi, mode: LocationFilter) {
|
||||
m.seen_area = None;
|
||||
}
|
||||
|
||||
/// The location filter's choices as the menus list them: (mode, label).
|
||||
pub struct LocationFilterChoice;
|
||||
|
||||
impl LocationFilterChoice {
|
||||
pub const ALL: [(LocationFilter, &'static str); 4] = [
|
||||
(LocationFilter::VisibleOnMap, "Visible On Map"),
|
||||
(LocationFilter::Tagged, "Tagged"),
|
||||
(LocationFilter::Untagged, "Untagged"),
|
||||
(LocationFilter::None, "None"),
|
||||
];
|
||||
}
|
||||
|
||||
/// A single photo's pin being dragged to a new place.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct PinDrag {
|
||||
@@ -233,6 +245,8 @@ pub fn state(app: &LightcraftApp) -> Value {
|
||||
"withGps": d.with_gps,
|
||||
"withoutGps": d.without_gps,
|
||||
"lockMarkers": app.ui.map.locked,
|
||||
"showPins": app.ui.map.show_pins,
|
||||
"showLocations": app.ui.map.navigator_open,
|
||||
"movingPin": d.moving.map(|(id, at)| json!({"id": id, "x": at.x, "y": at.y})),
|
||||
"hovered": d.hovered,
|
||||
"drop": d.drop.map(|(n, at, to)| json!({"count": n, "x": at.x, "y": at.y, "lat": to.lat, "lon": to.lon})),
|
||||
@@ -329,6 +343,32 @@ pub fn command(app: &mut LightcraftApp, id: &str, p: &Value) -> Option<Result<Va
|
||||
};
|
||||
app.run("map.location.add", q).inspect(|v| app.ui.map.active_location = v["id"].as_u64())
|
||||
}
|
||||
// {on?}: without it, toggles (H in the Map view, the toolbar's Hide Pins)
|
||||
"map.showPins" => {
|
||||
let on = match p.get("on") {
|
||||
None | Some(Value::Null) => !app.ui.map.show_pins,
|
||||
Some(v) => match v.as_bool() {
|
||||
Some(b) => b,
|
||||
None => return Some(Err("map.showPins: `on` is true or false".into())),
|
||||
},
|
||||
};
|
||||
app.ui.map.show_pins = on;
|
||||
Ok(json!({"on": on}))
|
||||
}
|
||||
// {on?}: the navigator panel, which holds the saved locations list (O in the Map view)
|
||||
"map.showLocations" => {
|
||||
let on = match p.get("on") {
|
||||
None | Some(Value::Null) => !app.ui.map.navigator_open,
|
||||
Some(v) => match v.as_bool() {
|
||||
Some(b) => b,
|
||||
None => return Some(Err("map.showLocations: `on` is true or false".into())),
|
||||
},
|
||||
};
|
||||
app.ui.map.navigator_open = on;
|
||||
Ok(json!({"on": on}))
|
||||
}
|
||||
// Settings ▸ Map (tile source, cache, the ArcGIS key)
|
||||
"map.settings" => app.run("app.settings", json!({"tab": "map"})),
|
||||
// {on?}: without it, toggles (Cmd/Ctrl+K in the Map view, the toolbar's Lock Markers)
|
||||
"map.lockMarkers" | "map.toggleLock" | "map.lock" => {
|
||||
let on = match p.get("on") {
|
||||
@@ -484,7 +524,8 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) {
|
||||
// 2. Cluster the pins of the view (world-anchored cells: panning never regroups them)
|
||||
let started = web_time::Instant::now();
|
||||
// Untagged: the filmstrip holds the photos without a position, so no pins
|
||||
let shown: &[MapPoint] = if map_ui.filter == LocationFilter::Untagged { &[] } else { &app.map_points.points };
|
||||
// (and Hide Pins: none at all, so none can be clicked, hovered or dragged)
|
||||
let shown: &[MapPoint] = if map_ui.filter == LocationFilter::Untagged || !map_ui.show_pins { &[] } else { &app.map_points.points };
|
||||
let clusters = lightcraft_engine::map::cluster::cluster(shown, &vp, CLUSTER_CELL);
|
||||
app.map_drawn.cluster_ms = started.elapsed().as_secs_f64() * 1e3;
|
||||
app.map_drawn.with_gps = app.map_points.points.len();
|
||||
@@ -589,7 +630,8 @@ fn navigate(
|
||||
// the active saved location's handles come first; then a drag that starts on a single photo's
|
||||
// pin moves it (unless markers are locked); any other drag (the empty map, a cluster) pans
|
||||
let busy = drag_location(app, ui, canvas_response, &vp, (canvas_rect, zone), map_ui);
|
||||
let before = lightcraft_engine::map::cluster::cluster(&app.map_points.points, &vp, CLUSTER_CELL);
|
||||
let pins: &[MapPoint] = if map_ui.show_pins { &app.map_points.points } else { &[] };
|
||||
let before = lightcraft_engine::map::cluster::cluster(pins, &vp, CLUSTER_CELL);
|
||||
if canvas_response.drag_started() {
|
||||
map_ui.pin_drag = None;
|
||||
if !map_ui.locked
|
||||
@@ -1146,6 +1188,12 @@ fn render_bottom_toolbar(app: &mut LightcraftApp, ui: &mut egui::Ui, canvas: Rec
|
||||
}
|
||||
|
||||
ui.add_space(12.0);
|
||||
let pins_btn = ui.selectable_label(!map_ui.show_pins, crate::i18n::tr("Hide Pins"));
|
||||
crate::widgets::register(ui, "map:hidePins", pins_btn.rect);
|
||||
if pins_btn.on_hover_text(crate::i18n::tr("Hide the photo pins (H); saved locations and the track log stay")).clicked() {
|
||||
map_ui.show_pins = !map_ui.show_pins;
|
||||
}
|
||||
ui.add_space(6.0);
|
||||
let lock_btn = ui.selectable_label(map_ui.locked, crate::i18n::tr("Lock Markers"));
|
||||
crate::widgets::register(ui, "map:lockMarkers", lock_btn.rect);
|
||||
if lock_btn.on_hover_text(crate::i18n::tr("Pins can't be dragged to move photos")).clicked() {
|
||||
|
||||
@@ -127,7 +127,13 @@ pub fn draw(session: &mut Session, painter: &Painter, rect: Rect, center: LatLon
|
||||
let source = session.map.effective_source();
|
||||
if source.is_offline() {
|
||||
let at = if rect.height() < 240.0 { egui::pos2(rect.center().x, rect.top() + 14.0) } else { rect.center() };
|
||||
painter.text(at, Align2::CENTER_CENTER, crate::i18n::tr("Map tiles are off"), FontId::proportional(12.0), Color32::from_rgb(90, 96, 104));
|
||||
painter.text(
|
||||
at,
|
||||
Align2::CENTER_CENTER,
|
||||
crate::i18n::tr("Map tiles are off (Settings › Map)"),
|
||||
FontId::proportional(12.0),
|
||||
Color32::from_rgb(90, 96, 104),
|
||||
);
|
||||
return Drawn { offline: true, ..Drawn::default() };
|
||||
}
|
||||
let Some(svc) = session.map_tiles() else { return Drawn { offline: true, ..Drawn::default() } };
|
||||
|
||||
@@ -320,13 +320,23 @@ fn matches(i: &egui::InputState, m: Modifiers, k: Key) -> bool {
|
||||
/// (Lightroom Classic's Library keys; Detail keeps brush size and Show Original). The full-screen
|
||||
/// preview keeps the grid's view but shows the photo alone, so backslash stays Show Original there.
|
||||
/// The Map view has no original to show, so its backslash shows / hides the map's filter bar, and
|
||||
/// its Cmd+K locks the markers instead of adding keywords (Lightroom Classic's Map module keys).
|
||||
/// its Cmd+K locks the markers instead of adding keywords (Lightroom Classic's Map module keys). In
|
||||
/// the Map view also: H hides / shows the pins (Remove elsewhere), O shows / hides the saved
|
||||
/// locations list (the mask overlay elsewhere), `=` / `-` zoom the map (the grid's thumbnail size
|
||||
/// elsewhere), and Cmd+= / Cmd+- / Cmd+0 zoom it in, out and fit it to the photos.
|
||||
/// Remapped brush and Show Original keys retain their action, and a saved assignment of the key to
|
||||
/// another command takes precedence over this default.
|
||||
fn grid_key_command(keymap: &Keymap, grid: bool, map: bool, fullscreen: bool, id: &'static str, shortcut: (Modifiers, Key)) -> Option<&'static str> {
|
||||
let command = match (grid, id, shortcut) {
|
||||
(_, "view.showOriginal", (m, Key::Backslash)) if map && m == Modifiers::NONE && !fullscreen => "view.toggleMapFilter",
|
||||
(_, "panel.addKeywords", (m, Key::K)) if map && m == Modifiers::COMMAND && !fullscreen => "map.lockMarkers",
|
||||
(_, "panel.remove", (m, Key::H)) if map && m == Modifiers::NONE && !fullscreen => "map.showPins",
|
||||
(_, "view.maskOverlay", (m, Key::O)) if map && m == Modifiers::NONE && !fullscreen => "map.showLocations",
|
||||
(_, "view.thumbSizeUp", (m, Key::Equals)) if map && m == Modifiers::NONE && !fullscreen => "map.zoomIn",
|
||||
(_, "view.thumbSizeDown", (m, Key::Minus)) if map && m == Modifiers::NONE && !fullscreen => "map.zoomOut",
|
||||
(_, "view.zoomIn", (m, Key::Equals)) if map && m == Modifiers::COMMAND && !fullscreen => "map.zoomIn",
|
||||
(_, "view.zoomOut", (m, Key::Minus)) if map && m == Modifiers::COMMAND && !fullscreen => "map.zoomOut",
|
||||
(_, "view.zoomFit", (m, Key::Num0)) if map && m == Modifiers::COMMAND && !fullscreen => "map.fit",
|
||||
(true, "brush.smaller", (m, Key::OpenBracket)) if m == Modifiers::NONE => "photo.decreaseRating",
|
||||
(true, "brush.larger", (m, Key::CloseBracket)) if m == Modifiers::NONE => "photo.increaseRating",
|
||||
(true, "view.showOriginal", (m, Key::Backslash)) if m == Modifiers::NONE && !fullscreen => "view.filterBar",
|
||||
@@ -393,7 +403,10 @@ pub fn handle(app: &mut LightcraftApp, ctx: &egui::Context) {
|
||||
return;
|
||||
}
|
||||
let (mut fire, aliased, h_press) = pressed_commands(app, ctx);
|
||||
let in_map = app.ui.view == crate::state::ViewMode::Map && !app.ui.fullscreen;
|
||||
for (id, params) in aliased {
|
||||
// `+` sizes the grid's thumbnails; in the Map view it zooms the map, as `=` does there
|
||||
let id = if in_map && id == "view.thumbSizeUp" { "map.zoomIn" } else { id };
|
||||
fire_alias(app, ctx, id, params);
|
||||
}
|
||||
// while the Masking panel is open, an unmodified H that no assignment has claimed toggles the
|
||||
@@ -401,6 +414,7 @@ pub fn handle(app: &mut LightcraftApp, ctx: &egui::Context) {
|
||||
// preview shows no panels and a minimized window hides the panel, so there H keeps its own
|
||||
// binding
|
||||
if h_press
|
||||
&& !in_map
|
||||
&& app.ui.right == crate::state::RightPanel::Masking
|
||||
&& !app.ui.fullscreen
|
||||
&& crate::docking::exposed(app, crate::docking::Panel::Tools)
|
||||
|
||||
@@ -17,6 +17,9 @@ pub struct MapUi {
|
||||
pub tracklog_visible: bool,
|
||||
pub legend_open: bool,
|
||||
pub navigator_open: bool,
|
||||
/// The photo pins are shown (H in the Map view, `map.showPins`); hidden pins can't be clicked,
|
||||
/// hovered or dragged, and saved locations and track logs stay.
|
||||
pub show_pins: bool,
|
||||
/// The view was set (fitted, moved, zoomed) this session: the first showing fits the photos
|
||||
/// only while this is false. Not saved.
|
||||
#[serde(skip)]
|
||||
@@ -68,6 +71,7 @@ impl Default for MapUi {
|
||||
tracklog_visible: true,
|
||||
legend_open: true,
|
||||
navigator_open: true,
|
||||
show_pins: true,
|
||||
fitted: false,
|
||||
last_canvas: None,
|
||||
pin_drag: None,
|
||||
|
||||
@@ -64,6 +64,7 @@ mod map_filmstrip;
|
||||
mod map_filter;
|
||||
mod map_geotag;
|
||||
mod map_info;
|
||||
mod map_keys;
|
||||
mod map_locations;
|
||||
mod map_tracks;
|
||||
mod mask_effects;
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
//! The Map view's keys, menus and settings (map phase 8): H hides the pins, O the saved locations
|
||||
//! list, `=` / `-` and Cmd+= / Cmd+- / Cmd+0 zoom and fit the map, `\` and Cmd+K as before — in the
|
||||
//! Map view only (outside it the keys keep Remove, the mask overlay, the grid's thumbnail size and
|
||||
//! Add Keywords); hidden pins can't be clicked; View ▸ Map gathers the map's commands (greyed
|
||||
//! elsewhere); Settings ▸ Map picks the tile source (a custom server only on Apply or Return; a
|
||||
//! refused one changes nothing) and clears the cache. The map is never online in tests.
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use serde_json::{Value, json};
|
||||
|
||||
use crate::headless::Headless;
|
||||
use crate::{LightcraftApp, Services};
|
||||
|
||||
const T: Duration = Duration::from_secs(20);
|
||||
|
||||
fn demo() -> (Headless, Vec<u64>) {
|
||||
let mut h = Headless::new(
|
||||
LightcraftApp::new(lightcraft_engine::Session::with_demo(), Services { png: None, ..Default::default() }),
|
||||
[1300.0, 1000.0],
|
||||
1.0,
|
||||
);
|
||||
let ids: Vec<u64> = h.app.session.visible_cloned().iter().take(3).map(|p| p.0).collect();
|
||||
for (id, (lat, lon)) in ids.iter().zip([(48.8584, 2.2945), (51.5007, -0.1246), (40.7484, -73.9857)]) {
|
||||
h.app.run("photo.setGps", json!({"ids": [id], "lat": lat, "lon": lon})).unwrap();
|
||||
}
|
||||
h.app.run("view.map", json!({})).unwrap();
|
||||
h.app.run("map.setView", json!({"lat": 48.8584, "lon": 2.2945, "zoom": 10})).unwrap();
|
||||
frames(&mut h, 3);
|
||||
(h, ids)
|
||||
}
|
||||
|
||||
fn frames(h: &mut Headless, n: usize) {
|
||||
for _ in 0..n {
|
||||
h.step();
|
||||
}
|
||||
}
|
||||
|
||||
fn key(h: &mut Headless, k: &str, cmd: bool) {
|
||||
let r = h.request("ui.key", json!({"key": k, "cmd": cmd}), T);
|
||||
assert_eq!(r["ok"], true, "{k}: {r}");
|
||||
frames(h, 2);
|
||||
}
|
||||
|
||||
fn state(h: &mut Headless) -> Value {
|
||||
h.app.run("map.state", json!({})).unwrap()
|
||||
}
|
||||
|
||||
fn widget(h: &Headless, id: &str) -> Option<egui::Rect> {
|
||||
h.app.widgets.iter().find(|(w, _)| w == id).map(|(_, r)| *r)
|
||||
}
|
||||
|
||||
fn click_at(h: &mut Headless, at: egui::Pos2) {
|
||||
h.app.synthetic.push(egui::Event::PointerMoved(at));
|
||||
h.step();
|
||||
for pressed in [true, false] {
|
||||
h.app.synthetic.push(egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: egui::Modifiers::NONE });
|
||||
h.step();
|
||||
}
|
||||
frames(h, 2);
|
||||
}
|
||||
|
||||
fn zoom(h: &mut Headless) -> f64 {
|
||||
state(h)["zoom"].as_f64().unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_map_keys_work_in_the_map_view_only() {
|
||||
let (mut h, ids) = demo();
|
||||
// H hides the pins, and hidden pins can't be clicked
|
||||
let pin = state(&mut h)["pins"].as_array().unwrap().iter().find(|p| p["ids"].as_array().unwrap().contains(&json!(ids[0]))).cloned().unwrap();
|
||||
let at = egui::pos2(pin["x"].as_f64().unwrap() as f32, pin["y"].as_f64().unwrap() as f32);
|
||||
key(&mut h, "H", false);
|
||||
let s = state(&mut h);
|
||||
assert_eq!((s["showPins"].as_bool(), s["pins"].as_array().map(Vec::len)), (Some(false), Some(0)), "{s}");
|
||||
h.app.run("library.select", json!({"ids": [ids[2]]})).unwrap();
|
||||
click_at(&mut h, at);
|
||||
assert_eq!(h.app.session.selection.ids.iter().map(|p| p.0).collect::<Vec<_>>(), vec![ids[2]], "a hidden pin isn't clicked");
|
||||
assert_eq!(serde_json::to_value(&h.app.ui).unwrap()["map"]["showPins"], false, "saved with the window state");
|
||||
key(&mut h, "H", false);
|
||||
assert_eq!(state(&mut h)["showPins"], true);
|
||||
assert_ne!(h.app.ui.right, crate::state::RightPanel::Remove, "H doesn't open Remove in the Map view");
|
||||
// O shows / hides the saved locations list (the navigator panel)
|
||||
let (open, overlay) = (h.app.ui.map.navigator_open, h.app.ui.mask_overlay);
|
||||
key(&mut h, "O", false);
|
||||
assert_eq!(h.app.ui.map.navigator_open, !open);
|
||||
assert_eq!(h.app.ui.mask_overlay, overlay, "O doesn't touch the mask overlay in the Map view");
|
||||
key(&mut h, "O", false);
|
||||
// = / - and Cmd+= / Cmd+- zoom; Cmd+0 fits
|
||||
let z = zoom(&mut h);
|
||||
key(&mut h, "=", false);
|
||||
assert_eq!(zoom(&mut h), z + 1.0);
|
||||
key(&mut h, "-", false);
|
||||
key(&mut h, "-", false);
|
||||
assert_eq!(zoom(&mut h), z - 1.0);
|
||||
key(&mut h, "=", true);
|
||||
assert_eq!(zoom(&mut h), z);
|
||||
let thumbs = h.app.ui.thumb_size;
|
||||
assert_eq!(h.app.ui.thumb_size, thumbs, "the grid's thumbnail size didn't change");
|
||||
key(&mut h, "0", true);
|
||||
assert!(zoom(&mut h) < z, "Cmd+0 fits every photo with a position (Paris, London, New York)");
|
||||
// \ and Cmd+K as before
|
||||
let bar = h.app.ui.map.show_filter_bar;
|
||||
key(&mut h, "\\", false);
|
||||
assert_eq!(h.app.ui.map.show_filter_bar, !bar);
|
||||
key(&mut h, "K", true);
|
||||
assert!(h.app.ui.map.locked);
|
||||
|
||||
// outside the Map view the keys keep their meaning
|
||||
h.app.run("view.photoGrid", json!({})).unwrap();
|
||||
frames(&mut h, 2);
|
||||
let pins = h.app.ui.map.show_pins;
|
||||
let thumbs = h.app.ui.thumb_size;
|
||||
key(&mut h, "=", false);
|
||||
assert!(h.app.ui.thumb_size > thumbs, "= sizes the grid's thumbnails");
|
||||
key(&mut h, "H", false);
|
||||
assert_eq!(h.app.ui.map.show_pins, pins, "H leaves the pins alone");
|
||||
assert_eq!(h.app.ui.right, crate::state::RightPanel::Remove, "H opens Remove (in Detail, as ever)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn view_map_gathers_the_map_commands_greyed_outside_the_map_view() {
|
||||
let (mut h, _) = demo();
|
||||
let find = |h: &Headless| -> Vec<(String, bool, Option<bool>)> {
|
||||
let bar = crate::menubar::menu_bar(&h.app);
|
||||
let view = bar.iter().find(|(t, _)| t == "View").map(|(_, i)| i.clone()).unwrap();
|
||||
let map = view
|
||||
.iter()
|
||||
.find_map(|n| match n {
|
||||
crate::menubar::MenuNode::Submenu { label, children } if label == "Map" => Some(children.clone()),
|
||||
_ => None,
|
||||
})
|
||||
.expect("View ▸ Map");
|
||||
map.iter()
|
||||
.filter_map(|n| match n {
|
||||
crate::menubar::MenuNode::Item { id, enabled, checked, .. } => Some((id.clone(), *enabled, *checked)),
|
||||
_ => None,
|
||||
})
|
||||
.collect()
|
||||
};
|
||||
let items = find(&h);
|
||||
for id in ["map.fit", "map.zoomIn", "map.zoomOut", "map.showPins", "map.lockMarkers", "map.filterBar", "map.settings"] {
|
||||
assert!(items.iter().any(|(i, e, _)| i == id && *e), "{id} enabled in the Map view: {items:?}");
|
||||
}
|
||||
assert_eq!(items.iter().find(|(i, ..)| i == "map.showPins").map(|(_, _, c)| *c), Some(Some(true)));
|
||||
// run from the menu, as the keys do
|
||||
h.app.run("map.showPins", json!({})).unwrap();
|
||||
assert_eq!(find(&h).iter().find(|(i, ..)| i == "map.showPins").map(|(_, _, c)| *c), Some(Some(false)));
|
||||
h.app.run("map.settings", json!({})).unwrap();
|
||||
assert!(matches!(&h.app.ui.dialog, Some(crate::state::Dialog::Settings { tab }) if tab == "map"));
|
||||
h.app.ui.dialog = None;
|
||||
// greyed outside the Map view (but Map Tiles… and Load Tracklog… stay)
|
||||
h.app.run("view.photoGrid", json!({})).unwrap();
|
||||
let items = find(&h);
|
||||
assert!(items.iter().any(|(i, e, _)| i == "map.fit" && !*e));
|
||||
assert!(items.iter().any(|(i, e, _)| i == "map.settings" && *e));
|
||||
assert!(h.app.run("map.showPins", json!({"on": "yes"})).is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn settings_map_picks_the_source_applies_a_custom_server_only_on_confirm_and_clears_the_cache() {
|
||||
let (mut h, _) = demo();
|
||||
h.app.run("app.settings", json!({"tab": "map"})).unwrap();
|
||||
frames(&mut h, 3);
|
||||
// a built-in source by its radio
|
||||
let r = h.request("ui.clickWidget", json!({"id": "settings:mapSource:opentopomap"}), T);
|
||||
assert_eq!(r["ok"], true, "{r}");
|
||||
frames(&mut h, 2);
|
||||
assert_eq!(h.app.session.map.source().id(), "opentopomap");
|
||||
assert!(widget(&h, "settings:mapSource:esri-streets").is_none(), "no Esri styles without a key");
|
||||
// a custom server: typing changes nothing; Return with a bad template shows why and changes nothing
|
||||
h.request("ui.clickWidget", json!({"id": "field:mapTemplate"}), T);
|
||||
frames(&mut h, 1);
|
||||
h.request("ui.text", json!({"text": "http://tiles.example.org/{z}/{x}/{y}.png"}), T);
|
||||
frames(&mut h, 2);
|
||||
assert_eq!(h.app.session.map.source().id(), "opentopomap", "not while typing");
|
||||
h.request("ui.key", json!({"key": "Enter"}), T);
|
||||
frames(&mut h, 2);
|
||||
assert!(widget(&h, "settings:mapError").is_some(), "the refusal is shown");
|
||||
assert_eq!(h.app.session.map.source().id(), "opentopomap", "a refused server changes nothing");
|
||||
// a good one, with its credit, on Apply
|
||||
h.request("ui.clickWidget", json!({"id": "field:mapTemplate"}), T);
|
||||
frames(&mut h, 1);
|
||||
h.request("ui.key", json!({"key": "A", "cmd": true}), T);
|
||||
h.request("ui.text", json!({"text": "https://tiles.example.org/{z}/{x}/{y}.png"}), T);
|
||||
frames(&mut h, 1);
|
||||
h.request("ui.clickWidget", json!({"id": "field:mapAttribution"}), T);
|
||||
frames(&mut h, 1);
|
||||
h.request("ui.text", json!({"text": "© Example"}), T);
|
||||
frames(&mut h, 1);
|
||||
h.request("ui.clickWidget", json!({"id": "button:mapCustomApply"}), T);
|
||||
frames(&mut h, 2);
|
||||
let s = h.app.session.execute("map.tileSource", &json!({})).unwrap();
|
||||
assert_eq!((s["custom"].as_bool(), s["attribution"].as_str()), (Some(true), Some("© Example")), "{s}");
|
||||
assert!(widget(&h, "settings:mapError").is_none());
|
||||
// the cache: its size, and Clear Cache when it holds tiles
|
||||
assert!(widget(&h, "settings:mapCacheSize").is_some());
|
||||
// the Esri styles appear once a key is set
|
||||
h.app.session.execute("map.setEsriKey", &json!({"key": "AAPK0123456789abcdef_TEST-key.x"})).unwrap();
|
||||
frames(&mut h, 2);
|
||||
assert!(widget(&h, "settings:mapSource:esri-streets").is_some());
|
||||
}
|
||||
@@ -115,6 +115,7 @@ filmstrip is visible.
|
||||
| `engine.execute {command: "map.state"}` | — | The Map view as drawn last frame (app only) → `{lat, lon, zoom, maxZoom, source, offline, attribution, shown, canvas: {x, y, width, height}, filmstrip, pins: [{ids, count, selected, x, y, lat, lon}], clusterCount, clusterMs, withGps, withoutGps, lockMarkers, movingPin: {id, x, y}, hovered, drop: {count, x, y, lat, lon}, miniMap: {photo, lat, lon, zoom, rect, pin, tiles}}` (`miniMap`: the Info panel's map, null when not drawn); `selected` is how many of a pin's photos are selected, `x`/`y` are screen points, at most 500 pins listed. See `docs/map.md` |
|
||||
| `engine.execute {command: "map.fit"}`, `map.setView`, `map.zoomIn`, `map.zoomOut` | `map.setView {lat?, lon?, zoom?}` | The Map view (UI commands): fit the photos with a position; set the centre (lat −90…90, lon wrapped) and zoom (1 to the source's max), anything else refused; one zoom level in / out → the map state |
|
||||
| `engine.execute {command: "map.lockMarkers"}` | `{on?}` | Lock Markers on / off, toggles without `on` (UI command; ⌘K / Ctrl+K in the Map view; `map.toggleLock` and `map.lock` are older names) → `{on}` |
|
||||
| `engine.execute {command: "map.showPins"}` | `{on?}`; `map.showLocations {on?}`; `map.settings` | Hide Pins (H in the Map view) and the saved locations list (O) on / off, toggling without `on` → `{on}`; `map.settings` opens Settings ▸ Map (UI commands) |
|
||||
| `engine.execute {command: "map.locationFilter"}` | `{mode?: visible\|tagged\|untagged\|none}` | The Map view's location filter (UI command): narrows the photos in view over the library's filter while the Map view is shown → `{mode, visible, tagged, untagged, all, area, countMs, shown}`. See `docs/map.md` → Location filter |
|
||||
| `engine.execute {command: "map.locations"}` | `map.location.add {name, lat, lon, radius?, private?}` or `{name, fromSelection: true}`, `map.location.update {id, …}`, `map.location.remove {id}`, `map.location.photos {id, inView?}`; app: `map.location.show {id}`, `map.location.select {id}`, `map.location.new {name?}` | The library's saved locations (`locations.json`) → `{locations: [{id, name, lat, lon, radius, private, photos, inView}], count, countMs}`. Not undo steps. See `docs/map.md` → Saved locations |
|
||||
| `engine.execute {command: "map.trackLog"}` | `{path?, gpx?, active?, offset?, clear?}`; app: `map.loadTrackLog {path?}` (a worker thread), `map.trackLog.autoTag {offset?}`, `map.trackLog.setOffset {offset?}`, `map.trackLog.fit` | The Map view's track log (session only) → `{loaded, path, name, points, tracks, active, start, end, duration, offset, startLocal, endLocal, generation, …}`; `photo.autoTagTracklog {loaded: true}` tags from it. See `docs/map.md` → Track logs |
|
||||
|
||||
@@ -62,9 +62,14 @@ in the grids, and `\` given to another command runs that command.
|
||||
| ⌘⌥3 / Ctrl+Alt+3 | Open the Map view (View → Map) |
|
||||
| `\` (backslash) | In the Map view: show / hide the map's location filter bar |
|
||||
| ⌘K / Ctrl+K | In the Map view: lock / unlock the markers (elsewhere it stays Add Keywords) |
|
||||
| `H` | In the Map view: hide / show the photo pins (elsewhere it stays Remove) |
|
||||
| `O` | In the Map view: show / hide the saved locations list (elsewhere it stays the mask overlay) |
|
||||
| `=` / `-` | In the Map view: zoom the map in / out (elsewhere the grid's thumbnail size) |
|
||||
| ⌘= / ⌘- / ⌘0 (Ctrl) | In the Map view: zoom the map in / out, fit it to the photos (elsewhere the photo's zoom) |
|
||||
|
||||
In the Map view `\` and ⌘K follow the same rule as `\` in the grids: they act on the map only while their default
|
||||
commands (Show Original, Add Keywords) keep those keys, and a key given to another command runs that command.
|
||||
In the Map view these keys follow the same rule as `\` in the grids: they act on the map only while their default
|
||||
commands (Show Original, Add Keywords, Remove, Mask Overlay, the thumbnail size and zoom) keep those keys, and a key
|
||||
given to another command runs that command. View ▸ Map lists them.
|
||||
|
||||
Flag cycling and raise/lower use each photo's own flag, so a mixed selection steps together without being made uniform. Adobe's shortcut list names the backtick "Cycle flag settings" but does not state the order; unflagged → pick → reject is LightCraft's choice. The key is the logical grave key, so it follows the keyboard layout (on layouts where it is a dead accent key, assign another key in Help → Keyboard Shortcuts to `photo.cycleFlag`).
|
||||
|
||||
|
||||
+39
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
The Map view (View ▸ Map, ⌘⌥3 / Ctrl+Alt+3) shows the photos that have a GPS position on a slippy map.
|
||||
This page describes the view, geotagging, where the map's tiles come from, what is sent over the network,
|
||||
and the commands behind it. Later sections (keys and menus) are filled in as those parts land.
|
||||
and the commands behind it.
|
||||
|
||||
## Map view
|
||||
|
||||
@@ -212,6 +212,44 @@ level's points, zoom, `levelMs`, `clipMs`), `ticks` (the marks on screen) and `o
|
||||
The track maths, the loader and the menu are ported from PR #916 (Jason Baldwin); the GPX parser's track indexes,
|
||||
names and caps are in the shared craft-metadata library this repository already uses.
|
||||
|
||||
## Keys and menus
|
||||
|
||||
In the Map view (and only there; elsewhere the keys keep their meaning, see `docs/library-shortcuts.md`):
|
||||
|
||||
| Key | Action |
|
||||
|---|---|
|
||||
| ⌘K / Ctrl+K | Lock Markers on / off |
|
||||
| `\` | Location filter bar shown / hidden |
|
||||
| `H` | Photo pins hidden / shown (Hide Pins) |
|
||||
| `O` | Saved locations list (the navigator panel) shown / hidden |
|
||||
| `=` / `-`, ⌘= / ⌘- | Zoom the map in / out |
|
||||
| ⌘0 | Fit to Photos |
|
||||
|
||||
**Hide Pins** (`H`, the bottom toolbar, `map.showPins {on?}`) hides the photo pins: hidden, they can't be clicked,
|
||||
hovered or dragged. Saved locations and the track log stay. The choice is saved with the window state (`ui.json`).
|
||||
|
||||
**View ▸ Map** gathers the map's commands, greyed outside the Map view: Fit to Photos, Zoom In / Out on Map, Map
|
||||
Pins, Lock Markers, Location Filter Bar, Location Filter ▸ (Visible On Map, Tagged, Untagged, None), Saved
|
||||
Locations ▸ (New Location…, Saved Locations List), Tracklog ▸ (Load Tracklog…, Auto-Tag Photos from Map Tracklog,
|
||||
Set Time Zone Offset…, Fit Map to Tracklog, Clear Tracklog) and Map Tiles…. Window ▸ Map keeps the panel toggles
|
||||
(Map View, Map Navigator, Location Filter Bar, Map Legend, Lock Map Markers).
|
||||
|
||||
**Settings ▸ Map** (Map Tiles…, `map.settings`): the tile source (each built-in one usable now, the Esri styles only
|
||||
with a key; Offline), or a custom tile server (URL template, attribution, max zoom) applied with Apply or Return,
|
||||
never while typing. A server that is refused (not `https://`, a missing placeholder, no credit, a bad max zoom) shows
|
||||
why, and nothing changes. Then the tile cache's size with Clear Cache, what a tile server sees, a link to this page,
|
||||
and the ArcGIS API key. The map's offline note ("Map tiles are off (Settings › Map)") points there.
|
||||
|
||||
| Command | Params | Result |
|
||||
|---|---|---|
|
||||
| `map.showPins` | `{on?}` | Hide Pins off / on (toggles without `on`) → `{on}` (app only) |
|
||||
| `map.showLocations` | `{on?}` | The saved locations list (navigator panel) → `{on}` (app only) |
|
||||
| `map.settings` | — | Opens Settings ▸ Map (app only) |
|
||||
|
||||
`map.state` also reports `showPins` and `showLocations`. Widgets: `map:hidePins`, `settings:mapSource:<id>`,
|
||||
`settings:mapSource:custom`, `field:mapTemplate`, `field:mapAttribution`, `field:mapMaxZoom`, `button:mapCustomApply`,
|
||||
`settings:mapError`, `settings:mapCacheSize`, `button:mapClearCache`, `link:mapDocs`.
|
||||
|
||||
## Tile sources and cache
|
||||
|
||||
The tiles are raster images in the Web Mercator projection (256 px, zoom 0–19). Where they come from is a
|
||||
|
||||
@@ -46,16 +46,16 @@ cited here still exists. Formerly docs/parity.md.
|
||||
| R. Video (VID) | 0 | 0 | 5 | 1 | — | 0/2 (0%) |
|
||||
| S. Export (EXP) | 14 | 5 | 0 | 0 | 7/7 (100%) | 6/7 (86%) |
|
||||
| T. Share (SHARE) | 0 | 0 | 0 | 4 | — | — |
|
||||
| U. Map & location (MAP) | 1 | 0 | 1 | 0 | — | 1/1 (100%) |
|
||||
| U. Map & location (MAP) | 1 | 1 | 0 | 0 | — | 1/1 (100%) |
|
||||
| V. Preferences (PREF) | 6 | 2 | 2 | 2 | 1/1 (100%) | 4/5 (80%) |
|
||||
| W. Cloud & AI infrastructure (CLOUD / AI) | 1 | 0 | 1 | 2 | — | — |
|
||||
| X. Cross-cutting behaviours (BEHAV) | 23 | 6 | 1 | 1 | 8/8 (100%) | 7/10 (70%) |
|
||||
| Y. Menus | 86 | 0 | 4 | 8 | 47/47 (100%) | 23/23 (100%) |
|
||||
| Y. Menus | 87 | 0 | 4 | 8 | 47/47 (100%) | 23/23 (100%) |
|
||||
| Z. Keyboard shortcuts (desktop) | 77 | 5 | 2 | 1 | 49/52 (94%) | 24/26 (92%) |
|
||||
| Lightroom Classic extras | 45 | 26 | 17 | 8 | — | 24/27 (89%) |
|
||||
| **Total** | 425 | 70 | 52 | 35 | 193/203 (95%) | 148/163 (91%) |
|
||||
| **Total** | 426 | 71 | 51 | 35 | 193/203 (95%) | 148/163 (91%) |
|
||||
|
||||
Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **84.1%** of 547 in-scope rows — P0 97.5% of 203 · P1 94.5% of 163 · P2 59.4% of 180.
|
||||
Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **84.2%** of 548 in-scope rows — P0 97.5% of 203 · P1 94.5% of 163 · P2 59.9% of 181.
|
||||
<!-- /parity:summary -->
|
||||
|
||||
## Top gaps and shortcut notes
|
||||
@@ -425,7 +425,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts).
|
||||
| Id | Feature | Tier | Status | Evidence | Missing / notes |
|
||||
|---|---|---|---|---|---|
|
||||
| LR-MAP-INFO | Location in the info panel | P1 | ✅ | `cmd:photo.setMeta` (`location`, `city`, `state`, `country`, `gps`), `cmd:map.state`, `crates/ui-egui/src/panels/right/info.rs`, `crates/ui-egui/src/panels/map.rs`, `crates/ui-egui/src/tests/map_info.rs` | location, city, state/province, country and GPS editable; under them a map of the active photo's place (zoom 14, its pin, the tile credit; shares the Map view's tiles and textures; fetches only while on screen; grey with a note offline); a click opens the Map view centred there; Open in Browser shows the place on openstreetmap.org. Private saved locations don't hide it yet (LRC-MAP-LOCATIONS) |
|
||||
| LR-MAP-MODULE | Map module [Classic] | P2 | ⬜ | | |
|
||||
| LR-MAP-MODULE | Map module [Classic] | P2 | 🟡 | `cmd:view.map`, `cmd:map.state`, `cmd:map.settings`, `cmd:map.showPins`, `crates/engine/src/map.rs`, `crates/ui-egui/src/panels/map.rs`, `crates/ui-egui/src/tests/map_keys.rs`, `docs/map.md` | A Map view (LRC-MAP-VIEW) with geotagging (LRC-MAP-GEOTAG), the location filter (LRC-MAP-FILTER), saved locations (LRC-MAP-LOCATIONS), track logs (LRC-MAP-TRACKLOG), the Info panel map (LR-MAP-INFO), the Map module's keys in the Map view (⌘K, `\`, H, O, = / −), View ▸ Map and Settings ▸ Map (tile source, custom server, cache). Not yet: satellite / hybrid imagery without the user's own key (Esri needs one, and its keyed service has no imagery style), a place search, an offline basemap, the Map module's own panel layout |
|
||||
|
||||
## V. Preferences (PREF)
|
||||
|
||||
@@ -538,6 +538,7 @@ visible menu bar yet: the menu model is only exposed through the control channel
|
||||
| MENU-VIEW-ENTERFULLSCREEN | Enter Full Screen | P1 | ✅ | `cmd:view.enterFullScreen` | |
|
||||
| MENU-VIEW-PHOTOSPANEL | Show/Hide photos panel | P0 | ✅ | `cmd:view.leftPanel` | |
|
||||
| MENU-VIEW-FILMSTRIP | Show/Hide filmstrip | P0 | ✅ | `cmd:view.filmstrip` | |
|
||||
| MENU-VIEW-MAP | View ▸ Map submenu [Classic] | P2 | ✅ | `cmd:map.fit`, `cmd:map.zoomIn`, `cmd:map.zoomOut`, `cmd:map.showPins`, `cmd:map.lockMarkers`, `cmd:map.locationFilter`, `cmd:map.location.new`, `cmd:map.showLocations`, `cmd:map.loadTrackLog`, `cmd:map.settings` | the Map view's commands gathered under View ▸ Map (Lightroom Classic's Map module menus), greyed outside the Map view |
|
||||
| MENU-VIEW-INFO | Show/Hide info | P0 | ✅ | `cmd:panel.info` | |
|
||||
| MENU-VIEW-KEYWORDS | Show/Hide keywords | P0 | ✅ | `cmd:panel.keywords` | |
|
||||
| MENU-VIEW-ACTIVITY | Show/Hide activity (comments) | OOS | 🚫 | | our History panel is `panel.activity` |
|
||||
@@ -803,6 +804,7 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-11-16 | minor | LR-MAP-MODULE ⬜ → 🟡: the Map view's keys (⌘K, `\`, H, O, = / −, ⌘= / ⌘− / ⌘0 in the Map view only), Hide Pins (`map.showPins`), View ▸ Map (MENU-VIEW-MAP added), Settings ▸ Map tile source / custom server / cache (`map.settings`) |
|
||||
| 2026-11-16 | patch | LRC-MAP-TRACKLOG: track logs drawn on the Map view (simplified per zoom, clipped, cut at ±180°) with the Tracklog menu (tracks, time range, offset, Auto-Tag from the active track, the selected photos marked on the track, fit, clear); loading off the UI thread with an activity row; `map.trackLog`; status unchanged (the row said ✅ already) |
|
||||
| 2026-11-16 | patch | LRC-MAP-LOCATIONS: saved locations move to a per-library `locations.json` (migrated once from `prefs.json`), get counts, Go To, select, rename, private (exports drop the location; the Info map hides), confirmed delete, circles with draggable handles, `map.location.*` commands and a GPS Radius rule field; status unchanged (the row said ✅ already) |
|
||||
| 2026-11-15 | patch | LRC-MAP-FILTER: the location filter bar now counts each choice and narrows the filmstrip (it only switched pins before); GPS Area and valid-only Has GPS smart-rule fields; status unchanged (the row said ✅ already) |
|
||||
|
||||
Reference in New Issue
Block a user