You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(search): resolve H3 cell indexes in the place-search box (#1497)
* feat(search): resolve H3 cell indexes in the place-search box
Typing an H3 cell index into the Layers panel search box now resolves it
locally, with no geocoder round-trip, and jumps to that cell. Both
spellings people copy around are accepted: the hexadecimal string
(8928308280fffff, optionally 0x-prefixed and in any case) and the
unsigned 64-bit integer (617700169958293503).
Selecting the result fits the view to the cell rather than flying to a
fixed zoom, since a cell spans anything from a continent at resolution 0
to under a square meter at resolution 15, and outlines the cell on the
map so the match is visible. The outline is ephemeral, cleared on the
next selection, on Clear, and on unmount.
Parsing lives in a standalone lib module alongside coordinates.ts so it
unit tests in isolation, and unwraps boundary longitudes around the cell
center so a cell crossing the antimeridian yields a contiguous ring.
Fixes#1492
* i18n: localize the search placeholder's coordinate and H3 hints
The English placeholder advertises place, lat/lon, and H3 input, but every
other locale still read "Search places...", so the two locally resolved
query forms were undiscoverable outside English. Bring all 15 remaining
locales in line.
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/de.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4020,12 +4020,13 @@
4020
4020
"saveEditsPostgisNoConnection": "Für diese Ebene ist keine PostgreSQL-Verbindung verfügbar. Stellen Sie die Verbindung unter Daten hinzufügen > PostgreSQL erneut her und versuchen Sie es dann noch einmal.",
4021
4021
"typeBasemap": "Basiskarte",
4022
4022
"searchPlaces": "Orte suchen",
4023
-
"searchPlacesPlaceholder": "Orte suchen...",
4023
+
"searchPlacesPlaceholder": "Orte, Koordinaten oder H3-Zelle suchen...",
4024
4024
"searchPlacesSearching": "Suche läuft...",
4025
4025
"searchPlacesNoResults": "Keine Orte gefunden",
4026
4026
"searchPlacesError": "Suche fehlgeschlagen. Versuchen Sie es erneut.",
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/es.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4031,12 +4031,13 @@
4031
4031
"saveEditsPostgisNoConnection": "No hay ninguna conexión de PostgreSQL disponible para esta capa. Vuelva a conectar en Añadir datos > PostgreSQL, e inténtelo de nuevo.",
4032
4032
"typeBasemap": "mapa base",
4033
4033
"searchPlaces": "Buscar lugares",
4034
-
"searchPlacesPlaceholder": "Buscar lugares...",
4034
+
"searchPlacesPlaceholder": "Buscar lugares, coordenadas o celda H3...",
4035
4035
"searchPlacesSearching": "Buscando...",
4036
4036
"searchPlacesNoResults": "No se encontraron lugares",
4037
4037
"searchPlacesError": "Error en la búsqueda. Inténtelo de nuevo.",
4038
4038
"searchPlacesClear": "Borrar búsqueda",
4039
4039
"searchPlacesGoToCoordinate": "Ir a {{coordinate}}",
4040
+
"searchPlacesGoToH3Cell": "Ir a la celda H3 {{cell}} (res. {{resolution}})",
4040
4041
"background": "Fondo",
4041
4042
"backgroundCannotReorder": "El fondo no se puede reordenar",
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/fr.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4020,12 +4020,13 @@
4020
4020
"saveEditsPostgisNoConnection": "Aucune connexion PostgreSQL n'est disponible pour cette couche. Reconnectez-vous dans Ajouter des données > PostgreSQL, puis réessayez.",
4021
4021
"typeBasemap": "fond de carte",
4022
4022
"searchPlaces": "Rechercher des lieux",
4023
-
"searchPlacesPlaceholder": "Rechercher des lieux...",
4023
+
"searchPlacesPlaceholder": "Rechercher un lieu, des coordonnées ou une cellule H3...",
4024
4024
"searchPlacesSearching": "Recherche...",
4025
4025
"searchPlacesNoResults": "Aucun lieu trouvé",
4026
4026
"searchPlacesError": "Échec de la recherche. Réessayez.",
4027
4027
"searchPlacesClear": "Effacer la recherche",
4028
4028
"searchPlacesGoToCoordinate": "Aller à {{coordinate}}",
4029
+
"searchPlacesGoToH3Cell": "Aller à la cellule H3 {{cell}} (rés. {{resolution}})",
4029
4030
"background": "Arrière-plan",
4030
4031
"backgroundCannotReorder": "L'arrière-plan ne peut pas être réorganisé",
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/hi.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4020,12 +4020,13 @@
4020
4020
"saveEditsPostgisNoConnection": "इस लेयर के लिए कोई PostgreSQL कनेक्शन उपलब्ध नहीं है। Add Data > PostgreSQL में पुनः कनेक्ट करें, फिर पुनः प्रयास करें।",
4021
4021
"typeBasemap": "बेसमैप",
4022
4022
"searchPlaces": "स्थान खोजें",
4023
-
"searchPlacesPlaceholder": "स्थान खोजें...",
4023
+
"searchPlacesPlaceholder": "स्थान, निर्देशांक या H3 सेल खोजें...",
4024
4024
"searchPlacesSearching": "खोजा जा रहा है...",
4025
4025
"searchPlacesNoResults": "कोई स्थान नहीं मिला",
4026
4026
"searchPlacesError": "खोज विफल रही। पुनः प्रयास करें।",
4027
4027
"searchPlacesClear": "खोज साफ़ करें",
4028
4028
"searchPlacesGoToCoordinate": "{{coordinate}} पर जाएँ",
4029
+
"searchPlacesGoToH3Cell": "H3 सेल {{cell}} पर जाएँ (रेज़ॉल्यूशन {{resolution}})",
4029
4030
"background": "पृष्ठभूमि",
4030
4031
"backgroundCannotReorder": "पृष्ठभूमि का क्रम नहीं बदला जा सकता",
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/id.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3962,12 +3962,13 @@
3962
3962
"saveEditsPostgisNoConnection": "Tidak ada koneksi PostgreSQL yang tersedia untuk layer ini. Hubungkan kembali di Tambah Data > PostgreSQL, lalu coba lagi.",
3963
3963
"typeBasemap": "peta dasar",
3964
3964
"searchPlaces": "Cari tempat",
3965
-
"searchPlacesPlaceholder": "Cari tempat...",
3965
+
"searchPlacesPlaceholder": "Cari tempat, koordinat, atau sel H3...",
3966
3966
"searchPlacesSearching": "Mencari...",
3967
3967
"searchPlacesNoResults": "Tidak ada tempat yang ditemukan",
Copy file name to clipboardExpand all lines: apps/geolibre-desktop/src/i18n/locales/it.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4020,12 +4020,13 @@
4020
4020
"saveEditsPostgisNoConnection": "Nessuna connessione PostgreSQL disponibile per questo livello. Riconnetti da Aggiungi dati > PostgreSQL, quindi riprova.",
4021
4021
"typeBasemap": "mappa di base",
4022
4022
"searchPlaces": "Cerca luoghi",
4023
-
"searchPlacesPlaceholder": "Cerca luoghi...",
4023
+
"searchPlacesPlaceholder": "Cerca luoghi, coordinate o celle H3...",
4024
4024
"searchPlacesSearching": "Ricerca in corso...",
4025
4025
"searchPlacesNoResults": "Nessun luogo trovato",
4026
4026
"searchPlacesError": "Ricerca non riuscita. Riprova.",
4027
4027
"searchPlacesClear": "Cancella ricerca",
4028
4028
"searchPlacesGoToCoordinate": "Vai a {{coordinate}}",
4029
+
"searchPlacesGoToH3Cell": "Vai alla cella H3 {{cell}} (ris. {{resolution}})",
4029
4030
"background": "Sfondo",
4030
4031
"backgroundCannotReorder": "Lo sfondo non può essere riordinato",
0 commit comments