feat(atlas): a regions view, and visited regions that stand out

A traveller who visited only Alberta saw all of Canada colored on the zoomed-out globe. A new layer switch, Regions instead of countries, keeps the coarse regions of every country with a visited region on screen at every zoom: the engine loads and holds them (setPinnedRegions), the renderer draws them at full strength with faint inner borders, and the country itself only tints faintly beneath them once they are drawn. The switch is remembered per device, on the desktop layers dialog and the phone sheet, in all 28 languages.

Also without the switch, a country with visited regions now steps far back once its regions fade in (to about a fifth instead of two thirds), so the regions really visited stand out from the rest of the country.
This commit is contained in:
Maurice
2026-11-29 11:53:46 +01:00
parent 00675c59b0
commit 14443a17be
43 changed files with 257 additions and 31 deletions
+1
View File
@@ -93,6 +93,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'أخرى',
'atlas.planned': 'مُخطط',
'atlas.showPlanned': 'إظهار الدول المخطط زيارتها',
'atlas.regionView': 'المناطق بدلًا من الدول',
'atlas.antarctica': 'أنتاركتيكا',
'atlas.globe.continents': 'القارات',
'atlas.globe.colorBy': 'التلوين حسب',
+1
View File
@@ -68,6 +68,7 @@ const atlas: TranslationStrings = {
'atlas.planned': 'Planlaşdırılıb',
'atlas.showPlanned': 'Planlaşdırılan ölkələri göstər',
'atlas.regionView': 'Ölkələr əvəzinə regionlar',
'atlas.antarctica': 'Antarktida',
'atlas.globe.continents': 'Qitələr',
'atlas.globe.colorBy': 'Rəngləmə meyarı',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Outro',
'atlas.planned': 'Planejado',
'atlas.showPlanned': 'Mostrar países planejados',
'atlas.regionView': 'Regiões em vez de países',
'atlas.antarctica': 'Antártida',
'atlas.globe.continents': 'Continentes',
'atlas.globe.colorBy': 'Colorir por',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': 'Ja és a la teva llista de desitjos',
'atlas.planned': 'Planificat',
'atlas.showPlanned': 'Mostra els països planificats',
'atlas.regionView': 'Regions en lloc de països',
'atlas.antarctica': 'Antàrtida',
'atlas.globe.continents': 'Continents', // same-as-en
'atlas.globe.colorBy': 'Acoloreix per',
+1
View File
@@ -69,6 +69,7 @@ const atlas: TranslationStrings = {
'atlas.searchPlaces': 'Místa',
'atlas.planned': 'Plánováno',
'atlas.showPlanned': 'Zobrazit plánované země',
'atlas.regionView': 'Regiony místo zemí',
'atlas.antarctica': 'Antarktida',
'atlas.globe.continents': 'Kontinenty',
'atlas.globe.colorBy': 'Obarvit podle',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Andere',
'atlas.planned': 'Geplant',
'atlas.showPlanned': 'Geplante Länder anzeigen',
'atlas.regionView': 'Regionen statt Ländern',
'atlas.antarctica': 'Antarktis',
'atlas.globe.continents': 'Kontinente',
'atlas.globe.colorBy': 'Färben nach',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Other',
'atlas.planned': 'Planned',
'atlas.showPlanned': 'Show planned countries',
'atlas.regionView': 'Regions instead of countries',
'atlas.antarctica': 'Antarctica',
'atlas.globe.continents': 'Continents',
'atlas.globe.colorBy': 'Colour by',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': 'Ya está en tu lista de deseos',
'atlas.planned': 'Planeado',
'atlas.showPlanned': 'Mostrar países planeados',
'atlas.regionView': 'Regiones en lugar de países',
'atlas.antarctica': 'Antártida',
'atlas.globe.continents': 'Continentes',
'atlas.globe.colorBy': 'Colorear por',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Muu',
'atlas.planned': 'Plaanis',
'atlas.showPlanned': 'Näita plaanis olevaid riike',
'atlas.regionView': 'Piirkonnad riikide asemel',
'atlas.antarctica': 'Antarktika',
'atlas.globe.continents': 'Mandrid',
'atlas.globe.colorBy': 'Värvimise alus',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': 'Déjà dans votre bucket list',
'atlas.planned': 'Prévu',
'atlas.showPlanned': 'Afficher les pays prévus',
'atlas.regionView': 'Régions plutôt que pays',
'atlas.antarctica': 'Antarctique',
'atlas.globe.continents': 'Continents', // same-as-en
'atlas.globe.colorBy': 'Colorier par',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Άλλο',
'atlas.planned': 'Προγραμματισμένο',
'atlas.showPlanned': 'Εμφάνιση προγραμματισμένων χωρών',
'atlas.regionView': 'Περιοχές αντί για χώρες',
'atlas.antarctica': 'Ανταρκτική',
'atlas.globe.continents': 'Ήπειροι',
'atlas.globe.colorBy': 'Χρωματισμός ανά',
+1
View File
@@ -69,6 +69,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'אחר',
'atlas.planned': 'מתוכנן',
'atlas.showPlanned': 'הצגת מדינות מתוכננות',
'atlas.regionView': 'אזורים במקום מדינות',
'atlas.antarctica': 'אנטארקטיקה',
'atlas.globe.continents': 'יבשות',
'atlas.globe.colorBy': 'צביעה לפי',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Egyéb',
'atlas.planned': 'Tervezett',
'atlas.showPlanned': 'Tervezett országok megjelenítése',
'atlas.regionView': 'Régiók országok helyett',
'atlas.antarctica': 'Antarktisz',
'atlas.globe.continents': 'Kontinensek',
'atlas.globe.colorBy': 'Színezés alapja',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Lainnya',
'atlas.planned': 'Direncanakan',
'atlas.showPlanned': 'Tampilkan negara yang direncanakan',
'atlas.regionView': 'Wilayah alih-alih negara',
'atlas.antarctica': 'Antarktika',
'atlas.globe.continents': 'Benua',
'atlas.globe.colorBy': 'Warnai menurut',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.searchPlaces': 'Luoghi',
'atlas.planned': 'In programma',
'atlas.showPlanned': 'Mostra i paesi in programma',
'atlas.regionView': 'Regioni invece dei paesi',
'atlas.antarctica': 'Antartide',
'atlas.globe.continents': 'Continenti',
'atlas.globe.colorBy': 'Colora per',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'その他',
'atlas.planned': '予定',
'atlas.showPlanned': '予定の国を表示',
'atlas.regionView': '国ではなく地域で表示',
'atlas.antarctica': '南極',
'atlas.globe.continents': '大陸',
'atlas.globe.colorBy': '色分け',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.other': '기타',
'atlas.planned': '예정',
'atlas.showPlanned': '예정된 국가 표시',
'atlas.regionView': '국가 대신 지역',
'atlas.antarctica': '남극',
'atlas.globe.continents': '대륙',
'atlas.globe.colorBy': '색상 기준',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': 'Staat al op je bucket list',
'atlas.planned': 'Gepland',
'atlas.showPlanned': 'Geplande landen tonen',
'atlas.regionView': 'Regio’s in plaats van landen',
'atlas.antarctica': 'Antarctica', // same-as-en
'atlas.globe.continents': 'Continenten',
'atlas.globe.colorBy': 'Kleur op',
+1
View File
@@ -77,6 +77,7 @@ const atlas: TranslationStrings = {
'atlas.searchPlaces': 'Miejsca',
'atlas.planned': 'Zaplanowane',
'atlas.showPlanned': 'Pokaż zaplanowane kraje',
'atlas.regionView': 'Regiony zamiast krajów',
'atlas.antarctica': 'Antarktyda',
'atlas.globe.continents': 'Kontynenty',
'atlas.globe.colorBy': 'Koloruj według',
+1
View File
@@ -77,6 +77,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': 'Уже в вашем списке желаний',
'atlas.planned': 'Запланировано',
'atlas.showPlanned': 'Показать запланированные страны',
'atlas.regionView': 'Регионы вместо стран',
'atlas.antarctica': 'Антарктида',
'atlas.globe.continents': 'Континенты',
'atlas.globe.colorBy': 'Раскрасить по',
+1
View File
@@ -69,6 +69,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Ostatné',
'atlas.planned': 'Plánované',
'atlas.showPlanned': 'Zobraziť plánované krajiny',
'atlas.regionView': 'Regióny namiesto krajín',
'atlas.antarctica': 'Antarktída',
'atlas.globe.continents': 'Kontinenty',
'atlas.globe.colorBy': 'Farbiť podľa',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Andra',
'atlas.planned': 'Planerat',
'atlas.showPlanned': 'Visa planerade länder',
'atlas.regionView': 'Regioner i stället för länder',
'atlas.antarctica': 'Antarktis',
'atlas.globe.continents': 'Världsdelar',
'atlas.globe.colorBy': 'Färga efter',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'อื่นๆ',
'atlas.planned': 'วางแผนแล้ว',
'atlas.showPlanned': 'แสดงประเทศที่วางแผนไว้',
'atlas.regionView': 'แสดงภูมิภาคแทนประเทศ',
'atlas.antarctica': 'แอนตาร์กติกา',
'atlas.globe.continents': 'ทวีป',
'atlas.globe.colorBy': 'แบ่งสีตาม',
+1
View File
@@ -61,6 +61,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Diğer',
'atlas.planned': 'Planlandı',
'atlas.showPlanned': 'Planlanan ülkeleri göster',
'atlas.regionView': 'Ülkeler yerine bölgeler',
'atlas.antarctica': 'Antarktika',
'atlas.globe.continents': 'Kıtalar',
'atlas.globe.colorBy': 'Renklendirme ölçütü',
+1
View File
@@ -77,6 +77,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': 'Вже у вашому списку бажань',
'atlas.planned': 'Заплановано',
'atlas.showPlanned': 'Показати заплановані країни',
'atlas.regionView': 'Регіони замість країн',
'atlas.antarctica': 'Антарктида',
'atlas.globe.continents': 'Континенти',
'atlas.globe.colorBy': 'Розфарбувати за',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.other': 'Khác',
'atlas.planned': 'Đã lên kế hoạch',
'atlas.showPlanned': 'Hiện các quốc gia đã lên kế hoạch',
'atlas.regionView': 'Vùng thay vì quốc gia',
'atlas.antarctica': 'Nam Cực',
'atlas.globe.continents': 'Châu lục',
'atlas.globe.colorBy': 'Tô màu theo',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': '已經在你的心願單中',
'atlas.planned': '計劃中',
'atlas.showPlanned': '顯示計劃中的國家',
'atlas.regionView': '顯示地區而非國家',
'atlas.antarctica': '南極洲',
'atlas.globe.continents': '大洲',
'atlas.globe.colorBy': '著色依據',
+1
View File
@@ -53,6 +53,7 @@ const atlas: TranslationStrings = {
'atlas.bucketDuplicate': '已经在你的心愿单中',
'atlas.planned': '计划中',
'atlas.showPlanned': '显示计划中的国家',
'atlas.regionView': '显示地区而非国家',
'atlas.antarctica': '南极洲',
'atlas.globe.continents': '大洲',
'atlas.globe.colorBy': '着色依据',