Merge pull request #629 from ericszimmermann/ez_filter_online_map
Add online map filtering
This commit is contained in:
27 files changed
+423
-24
No files matched your search
@@ -604,6 +604,8 @@
|
|||||||
"appSettings_showChatNodesSubtitle": "Display chat nodes on the map",
|
"appSettings_showChatNodesSubtitle": "Display chat nodes on the map",
|
||||||
"appSettings_showOtherNodes": "Show Other Nodes",
|
"appSettings_showOtherNodes": "Show Other Nodes",
|
||||||
"appSettings_showOtherNodesSubtitle": "Display other node types on the map",
|
"appSettings_showOtherNodesSubtitle": "Display other node types on the map",
|
||||||
|
"appSettings_showOnlineLinks": "Show Online Map Connections",
|
||||||
|
"appSettings_showOnlineLinksSubtitle": "Display connection lines between nodes from the online map",
|
||||||
"appSettings_timeFilter": "Time Filter",
|
"appSettings_timeFilter": "Time Filter",
|
||||||
"appSettings_timeFilterShowAll": "Show all nodes",
|
"appSettings_timeFilterShowAll": "Show all nodes",
|
||||||
"appSettings_timeFilterShowLast": "Show nodes from last {hours} hours",
|
"appSettings_timeFilterShowLast": "Show nodes from last {hours} hours",
|
||||||
@@ -1398,6 +1400,7 @@
|
|||||||
"map_chatNodes": "Chat Nodes",
|
"map_chatNodes": "Chat Nodes",
|
||||||
"map_repeaters": "Repeaters",
|
"map_repeaters": "Repeaters",
|
||||||
"map_otherNodes": "Other Nodes",
|
"map_otherNodes": "Other Nodes",
|
||||||
|
"map_showOnlineLinks": "Show Online Map Connections",
|
||||||
"map_showOverlaps": "Repeater Key Overlaps",
|
"map_showOverlaps": "Repeater Key Overlaps",
|
||||||
"map_keyPrefix": "Key Prefix",
|
"map_keyPrefix": "Key Prefix",
|
||||||
"map_filterByKeyPrefix": "Filter by key prefix",
|
"map_filterByKeyPrefix": "Filter by key prefix",
|
||||||
|
|||||||
@@ -2566,6 +2566,18 @@ abstract class AppLocalizations {
|
|||||||
/// **'Display other node types on the map'**
|
/// **'Display other node types on the map'**
|
||||||
String get appSettings_showOtherNodesSubtitle;
|
String get appSettings_showOtherNodesSubtitle;
|
||||||
|
|
||||||
|
/// No description provided for @appSettings_showOnlineLinks.
|
||||||
|
///
|
||||||
|
/// In en, this message translates to:
|
||||||
|
/// **'Show Online Map Connections'**
|
||||||
|
String get appSettings_showOnlineLinks;
|
||||||
|
|
||||||
|
/// No description provided for @appSettings_showOnlineLinksSubtitle.
|
||||||
|
///
|
||||||
|
/// In en, this message translates to:
|
||||||
|
/// **'Display connection lines between nodes from the online map'**
|
||||||
|
String get appSettings_showOnlineLinksSubtitle;
|
||||||
|
|
||||||
/// No description provided for @appSettings_timeFilter.
|
/// No description provided for @appSettings_timeFilter.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
@@ -4774,6 +4786,12 @@ abstract class AppLocalizations {
|
|||||||
/// **'Other Nodes'**
|
/// **'Other Nodes'**
|
||||||
String get map_otherNodes;
|
String get map_otherNodes;
|
||||||
|
|
||||||
|
/// No description provided for @map_showOnlineLinks.
|
||||||
|
///
|
||||||
|
/// In en, this message translates to:
|
||||||
|
/// **'Show Online Map Connections'**
|
||||||
|
String get map_showOnlineLinks;
|
||||||
|
|
||||||
/// No description provided for @map_showOverlaps.
|
/// No description provided for @map_showOverlaps.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
|
|||||||
@@ -1420,6 +1420,13 @@ class AppLocalizationsBg extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Покажи други типове възли на картата';
|
'Покажи други типове възли на картата';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Филтриране по време';
|
String get appSettings_timeFilter => 'Филтриране по време';
|
||||||
|
|
||||||
@@ -2698,6 +2705,9 @@ class AppLocalizationsBg extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Други възли';
|
String get map_otherNodes => 'Други възли';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Покриване на ключа на повтаряча';
|
String get map_showOverlaps => 'Покриване на ключа на повтаряча';
|
||||||
|
|
||||||
|
|||||||
@@ -1418,6 +1418,13 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Andere Knotentypen auf der Karte anzeigen';
|
'Andere Knotentypen auf der Karte anzeigen';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Zeitfilter';
|
String get appSettings_timeFilter => 'Zeitfilter';
|
||||||
|
|
||||||
@@ -2697,6 +2704,9 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Andere Knoten';
|
String get map_otherNodes => 'Andere Knoten';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Repeater-Schlüsselüberlappungen';
|
String get map_showOverlaps => 'Repeater-Schlüsselüberlappungen';
|
||||||
|
|
||||||
|
|||||||
@@ -1395,6 +1395,13 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Display other node types on the map';
|
'Display other node types on the map';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Time Filter';
|
String get appSettings_timeFilter => 'Time Filter';
|
||||||
|
|
||||||
@@ -2656,6 +2663,9 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Other Nodes';
|
String get map_otherNodes => 'Other Nodes';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Repeater Key Overlaps';
|
String get map_showOverlaps => 'Repeater Key Overlaps';
|
||||||
|
|
||||||
|
|||||||
@@ -1409,6 +1409,13 @@ class AppLocalizationsEs extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Mostrar otros tipos de nodo en el mapa';
|
'Mostrar otros tipos de nodo en el mapa';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filtro de tiempo';
|
String get appSettings_timeFilter => 'Filtro de tiempo';
|
||||||
|
|
||||||
@@ -2687,6 +2694,9 @@ class AppLocalizationsEs extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Otros nodos';
|
String get map_otherNodes => 'Otros nodos';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Superposiciones de tecla repetidora';
|
String get map_showOverlaps => 'Superposiciones de tecla repetidora';
|
||||||
|
|
||||||
|
|||||||
@@ -1417,6 +1417,13 @@ class AppLocalizationsFr extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Afficher d\'autres types de nœuds sur la carte';
|
'Afficher d\'autres types de nœuds sur la carte';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filtre du temps';
|
String get appSettings_timeFilter => 'Filtre du temps';
|
||||||
|
|
||||||
@@ -2695,6 +2702,9 @@ class AppLocalizationsFr extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Autres nœuds';
|
String get map_otherNodes => 'Autres nœuds';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Chevauchements de clés de répéteur';
|
String get map_showOverlaps => 'Chevauchements de clés de répéteur';
|
||||||
|
|
||||||
|
|||||||
@@ -1407,6 +1407,13 @@ class AppLocalizationsHu extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Más csomóponttípusok megjelenítése a térképen';
|
'Más csomóponttípusok megjelenítése a térképen';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Időszűrő';
|
String get appSettings_timeFilter => 'Időszűrő';
|
||||||
|
|
||||||
@@ -2685,6 +2692,9 @@ class AppLocalizationsHu extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Egyéb csomópontok';
|
String get map_otherNodes => 'Egyéb csomópontok';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Repeater Key átfedések';
|
String get map_showOverlaps => 'Repeater Key átfedések';
|
||||||
|
|
||||||
|
|||||||
@@ -1418,6 +1418,13 @@ class AppLocalizationsIt extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Mostra altri tipi di nodo sulla mappa';
|
'Mostra altri tipi di nodo sulla mappa';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filtro Temporale';
|
String get appSettings_timeFilter => 'Filtro Temporale';
|
||||||
|
|
||||||
@@ -2696,6 +2703,9 @@ class AppLocalizationsIt extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Altri nodi';
|
String get map_otherNodes => 'Altri nodi';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Sovrapposizioni chiave ripetitore';
|
String get map_showOverlaps => 'Sovrapposizioni chiave ripetitore';
|
||||||
|
|
||||||
|
|||||||
@@ -1338,6 +1338,13 @@ class AppLocalizationsJa extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get appSettings_showOtherNodesSubtitle => '地図上に、他のノードの種類を表示する';
|
String get appSettings_showOtherNodesSubtitle => '地図上に、他のノードの種類を表示する';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => '時間フィルター';
|
String get appSettings_timeFilter => '時間フィルター';
|
||||||
|
|
||||||
@@ -2576,6 +2583,9 @@ class AppLocalizationsJa extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'その他のノード';
|
String get map_otherNodes => 'その他のノード';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'リピータキーの重複';
|
String get map_showOverlaps => 'リピータキーの重複';
|
||||||
|
|
||||||
|
|||||||
@@ -1343,6 +1343,13 @@ class AppLocalizationsKo extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get appSettings_showOtherNodesSubtitle => '지도에 다른 노드 유형을 표시';
|
String get appSettings_showOtherNodesSubtitle => '지도에 다른 노드 유형을 표시';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => '시간 필터';
|
String get appSettings_timeFilter => '시간 필터';
|
||||||
|
|
||||||
@@ -2580,6 +2587,9 @@ class AppLocalizationsKo extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => '다른 노드';
|
String get map_otherNodes => '다른 노드';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => '반복 키 중복';
|
String get map_showOverlaps => '반복 키 중복';
|
||||||
|
|
||||||
|
|||||||
@@ -1408,6 +1408,13 @@ class AppLocalizationsNl extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Toon andere nodetypes op de kaart';
|
'Toon andere nodetypes op de kaart';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filter op tijd';
|
String get appSettings_timeFilter => 'Filter op tijd';
|
||||||
|
|
||||||
@@ -2679,6 +2686,9 @@ class AppLocalizationsNl extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Andere Nodes';
|
String get map_otherNodes => 'Andere Nodes';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Overlappende repeatersleutels';
|
String get map_showOverlaps => 'Overlappende repeatersleutels';
|
||||||
|
|
||||||
|
|||||||
@@ -1422,6 +1422,13 @@ class AppLocalizationsPl extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Wyświetl inne typy węzłów na mapie';
|
'Wyświetl inne typy węzłów na mapie';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filtrowanie Czasu';
|
String get appSettings_timeFilter => 'Filtrowanie Czasu';
|
||||||
|
|
||||||
@@ -2712,6 +2719,9 @@ class AppLocalizationsPl extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Inne węzły';
|
String get map_otherNodes => 'Inne węzły';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Nakładające się klucze przekaźników';
|
String get map_showOverlaps => 'Nakładające się klucze przekaźników';
|
||||||
|
|
||||||
|
|||||||
@@ -1412,6 +1412,13 @@ class AppLocalizationsPt extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Exibir outros tipos de nó no mapa';
|
'Exibir outros tipos de nó no mapa';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filtro de Tempo';
|
String get appSettings_timeFilter => 'Filtro de Tempo';
|
||||||
|
|
||||||
@@ -2690,6 +2697,9 @@ class AppLocalizationsPt extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Outros Nós';
|
String get map_otherNodes => 'Outros Nós';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Sobreposições da Chave Repeater';
|
String get map_showOverlaps => 'Sobreposições da Chave Repeater';
|
||||||
|
|
||||||
|
|||||||
@@ -1418,6 +1418,13 @@ class AppLocalizationsRu extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Отображать другие типы нод на карте';
|
'Отображать другие типы нод на карте';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Фильтр по времени';
|
String get appSettings_timeFilter => 'Фильтр по времени';
|
||||||
|
|
||||||
@@ -2696,6 +2703,9 @@ class AppLocalizationsRu extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Другие ноды';
|
String get map_otherNodes => 'Другие ноды';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Перекрытия ключа повтора';
|
String get map_showOverlaps => 'Перекрытия ключа повтора';
|
||||||
|
|
||||||
|
|||||||
@@ -1408,6 +1408,13 @@ class AppLocalizationsSk extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Zobraziť ostatné typy uzlov na mape';
|
'Zobraziť ostatné typy uzlov na mape';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Časový filter';
|
String get appSettings_timeFilter => 'Časový filter';
|
||||||
|
|
||||||
@@ -2687,6 +2694,9 @@ class AppLocalizationsSk extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Ostatné uzly';
|
String get map_otherNodes => 'Ostatné uzly';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Prekrývanie opakovača kľúča';
|
String get map_showOverlaps => 'Prekrývanie opakovača kľúča';
|
||||||
|
|
||||||
|
|||||||
@@ -1406,6 +1406,13 @@ class AppLocalizationsSl extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Pokaži druge vrste naprav na zemljevidu.';
|
'Pokaži druge vrste naprav na zemljevidu.';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Filter po času';
|
String get appSettings_timeFilter => 'Filter po času';
|
||||||
|
|
||||||
@@ -2678,6 +2685,9 @@ class AppLocalizationsSl extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Druge vozlišča';
|
String get map_otherNodes => 'Druge vozlišča';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Prekrivanje ključa ponovnega predvajanja';
|
String get map_showOverlaps => 'Prekrivanje ključa ponovnega predvajanja';
|
||||||
|
|
||||||
|
|||||||
@@ -1393,6 +1393,13 @@ class AppLocalizationsSv extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Visa andra nodtyper på kartan';
|
'Visa andra nodtyper på kartan';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Tidsfilter';
|
String get appSettings_timeFilter => 'Tidsfilter';
|
||||||
|
|
||||||
@@ -2664,6 +2671,9 @@ class AppLocalizationsSv extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Andra noder';
|
String get map_otherNodes => 'Andra noder';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Repeater-nyckelöverlappningar';
|
String get map_showOverlaps => 'Repeater-nyckelöverlappningar';
|
||||||
|
|
||||||
|
|||||||
@@ -1410,6 +1410,13 @@ class AppLocalizationsUk extends AppLocalizations {
|
|||||||
String get appSettings_showOtherNodesSubtitle =>
|
String get appSettings_showOtherNodesSubtitle =>
|
||||||
'Відображати інші типи вузлів на карті';
|
'Відображати інші типи вузлів на карті';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => 'Фільтр часу';
|
String get appSettings_timeFilter => 'Фільтр часу';
|
||||||
|
|
||||||
@@ -2688,6 +2695,9 @@ class AppLocalizationsUk extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => 'Інші вузли';
|
String get map_otherNodes => 'Інші вузли';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => 'Перекриття ключів ретрансляторів';
|
String get map_showOverlaps => 'Перекриття ключів ретрансляторів';
|
||||||
|
|
||||||
|
|||||||
@@ -1320,6 +1320,13 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get appSettings_showOtherNodesSubtitle => '在地图上显示其他节点类型';
|
String get appSettings_showOtherNodesSubtitle => '在地图上显示其他节点类型';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get appSettings_showOnlineLinksSubtitle =>
|
||||||
|
'Display connection lines between nodes from the online map';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appSettings_timeFilter => '时间过滤器';
|
String get appSettings_timeFilter => '时间过滤器';
|
||||||
|
|
||||||
@@ -2540,6 +2547,9 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
@override
|
@override
|
||||||
String get map_otherNodes => '其他节点';
|
String get map_otherNodes => '其他节点';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get map_showOnlineLinks => 'Show Online Map Connections';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get map_showOverlaps => '重复键重叠';
|
String get map_showOverlaps => '重复键重叠';
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ class AppSettings {
|
|||||||
final bool mapShowRepeaters;
|
final bool mapShowRepeaters;
|
||||||
final bool mapShowChatNodes;
|
final bool mapShowChatNodes;
|
||||||
final bool mapShowOtherNodes;
|
final bool mapShowOtherNodes;
|
||||||
|
final bool mapShowOnlineLinks;
|
||||||
final bool mapShowOverlaps;
|
final bool mapShowOverlaps;
|
||||||
final double mapTimeFilterHours; // 0 = all time
|
final double mapTimeFilterHours; // 0 = all time
|
||||||
final bool mapKeyPrefixEnabled;
|
final bool mapKeyPrefixEnabled;
|
||||||
@@ -254,6 +255,7 @@ class AppSettings {
|
|||||||
this.mapShowRepeaters = true,
|
this.mapShowRepeaters = true,
|
||||||
this.mapShowChatNodes = true,
|
this.mapShowChatNodes = true,
|
||||||
this.mapShowOtherNodes = true,
|
this.mapShowOtherNodes = true,
|
||||||
|
this.mapShowOnlineLinks = true,
|
||||||
this.mapShowOverlaps = false,
|
this.mapShowOverlaps = false,
|
||||||
this.mapTimeFilterHours = 168,
|
this.mapTimeFilterHours = 168,
|
||||||
this.mapKeyPrefixEnabled = false,
|
this.mapKeyPrefixEnabled = false,
|
||||||
@@ -349,6 +351,7 @@ class AppSettings {
|
|||||||
'map_show_repeaters': mapShowRepeaters,
|
'map_show_repeaters': mapShowRepeaters,
|
||||||
'map_show_chat_nodes': mapShowChatNodes,
|
'map_show_chat_nodes': mapShowChatNodes,
|
||||||
'map_show_other_nodes': mapShowOtherNodes,
|
'map_show_other_nodes': mapShowOtherNodes,
|
||||||
|
'map_show_online_links': mapShowOnlineLinks,
|
||||||
'map_show_overlaps': mapShowOverlaps,
|
'map_show_overlaps': mapShowOverlaps,
|
||||||
'map_time_filter_hours': mapTimeFilterHours,
|
'map_time_filter_hours': mapTimeFilterHours,
|
||||||
'map_key_prefix_enabled': mapKeyPrefixEnabled,
|
'map_key_prefix_enabled': mapKeyPrefixEnabled,
|
||||||
@@ -481,6 +484,7 @@ class AppSettings {
|
|||||||
mapShowRepeaters: json['map_show_repeaters'] as bool? ?? true,
|
mapShowRepeaters: json['map_show_repeaters'] as bool? ?? true,
|
||||||
mapShowChatNodes: json['map_show_chat_nodes'] as bool? ?? true,
|
mapShowChatNodes: json['map_show_chat_nodes'] as bool? ?? true,
|
||||||
mapShowOtherNodes: json['map_show_other_nodes'] as bool? ?? true,
|
mapShowOtherNodes: json['map_show_other_nodes'] as bool? ?? true,
|
||||||
|
mapShowOnlineLinks: json['map_show_online_links'] as bool? ?? true,
|
||||||
mapShowOverlaps: json['map_show_overlaps'] as bool? ?? false,
|
mapShowOverlaps: json['map_show_overlaps'] as bool? ?? false,
|
||||||
mapTimeFilterHours:
|
mapTimeFilterHours:
|
||||||
(json['map_time_filter_hours'] as num?)?.toDouble() ?? 168,
|
(json['map_time_filter_hours'] as num?)?.toDouble() ?? 168,
|
||||||
@@ -648,6 +652,7 @@ class AppSettings {
|
|||||||
bool? mapShowRepeaters,
|
bool? mapShowRepeaters,
|
||||||
bool? mapShowChatNodes,
|
bool? mapShowChatNodes,
|
||||||
bool? mapShowOtherNodes,
|
bool? mapShowOtherNodes,
|
||||||
|
bool? mapShowOnlineLinks,
|
||||||
bool? mapShowOverlaps,
|
bool? mapShowOverlaps,
|
||||||
double? mapTimeFilterHours,
|
double? mapTimeFilterHours,
|
||||||
bool? mapKeyPrefixEnabled,
|
bool? mapKeyPrefixEnabled,
|
||||||
@@ -727,6 +732,7 @@ class AppSettings {
|
|||||||
mapShowRepeaters: mapShowRepeaters ?? this.mapShowRepeaters,
|
mapShowRepeaters: mapShowRepeaters ?? this.mapShowRepeaters,
|
||||||
mapShowChatNodes: mapShowChatNodes ?? this.mapShowChatNodes,
|
mapShowChatNodes: mapShowChatNodes ?? this.mapShowChatNodes,
|
||||||
mapShowOtherNodes: mapShowOtherNodes ?? this.mapShowOtherNodes,
|
mapShowOtherNodes: mapShowOtherNodes ?? this.mapShowOtherNodes,
|
||||||
|
mapShowOnlineLinks: mapShowOnlineLinks ?? this.mapShowOnlineLinks,
|
||||||
mapShowOverlaps: mapShowOverlaps ?? this.mapShowOverlaps,
|
mapShowOverlaps: mapShowOverlaps ?? this.mapShowOverlaps,
|
||||||
mapTimeFilterHours: mapTimeFilterHours ?? this.mapTimeFilterHours,
|
mapTimeFilterHours: mapTimeFilterHours ?? this.mapTimeFilterHours,
|
||||||
mapKeyPrefixEnabled: mapKeyPrefixEnabled ?? this.mapKeyPrefixEnabled,
|
mapKeyPrefixEnabled: mapKeyPrefixEnabled ?? this.mapKeyPrefixEnabled,
|
||||||
|
|||||||
@@ -1130,6 +1130,15 @@ class AppSettingsScreen extends StatelessWidget {
|
|||||||
onChanged: (value) => settingsService.setMapShowOtherNodes(value),
|
onChanged: (value) => settingsService.setMapShowOtherNodes(value),
|
||||||
),
|
),
|
||||||
const Divider(height: 1, indent: 16),
|
const Divider(height: 1, indent: 16),
|
||||||
|
SwitchListTile(
|
||||||
|
contentPadding: tilePadding,
|
||||||
|
secondary: const Icon(Icons.polyline_outlined, size: 24),
|
||||||
|
title: Text(context.l10n.appSettings_showOnlineLinks),
|
||||||
|
subtitle: Text(context.l10n.appSettings_showOnlineLinksSubtitle),
|
||||||
|
value: settings.mapShowOnlineLinks,
|
||||||
|
onChanged: (value) => settingsService.setMapShowOnlineLinks(value),
|
||||||
|
),
|
||||||
|
const Divider(height: 1, indent: 16),
|
||||||
MeshNavTile(
|
MeshNavTile(
|
||||||
icon: Icons.timer_outlined,
|
icon: Icons.timer_outlined,
|
||||||
title: context.l10n.appSettings_timeFilter,
|
title: context.l10n.appSettings_timeFilter,
|
||||||
|
|||||||
@@ -237,7 +237,13 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
|
|
||||||
void _requestOnlineData() {
|
void _requestOnlineData() {
|
||||||
try {
|
try {
|
||||||
_online.requestBounds(_mapController.camera.visibleBounds);
|
_online.requestBounds(
|
||||||
|
_mapController.camera.visibleBounds,
|
||||||
|
fetchLinks: context
|
||||||
|
.read<AppSettingsService>()
|
||||||
|
.settings
|
||||||
|
.mapShowOnlineLinks,
|
||||||
|
);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
// Camera not ready yet; onMapReady requests once it is.
|
// Camera not ready yet; onMapReady requests once it is.
|
||||||
}
|
}
|
||||||
@@ -714,6 +720,11 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
contactsWithLocation,
|
contactsWithLocation,
|
||||||
settings,
|
settings,
|
||||||
);
|
);
|
||||||
|
final visibleOnlineRepeaters = _filterOnlineRepeatersBySettings(
|
||||||
|
_online.repeaters,
|
||||||
|
settings,
|
||||||
|
showGuessedLocations: settings.mapShowGuessedLocations,
|
||||||
|
);
|
||||||
Contact? selectedContact;
|
Contact? selectedContact;
|
||||||
if (_selectedKey != null) {
|
if (_selectedKey != null) {
|
||||||
for (final c in allContacts) {
|
for (final c in allContacts) {
|
||||||
@@ -937,6 +948,8 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
if (showOnline)
|
if (showOnline)
|
||||||
...buildNetworkMapOnlineLayers(
|
...buildNetworkMapOnlineLayers(
|
||||||
controller: _online,
|
controller: _online,
|
||||||
|
repeaters: visibleOnlineRepeaters,
|
||||||
|
showLinks: settings.mapShowOnlineLinks,
|
||||||
localMarkerKeys: showLocal
|
localMarkerKeys: showLocal
|
||||||
? {for (final c in visibleContacts) c.publicKeyHex}
|
? {for (final c in visibleContacts) c.publicKeyHex}
|
||||||
: const {},
|
: const {},
|
||||||
@@ -1425,6 +1438,43 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
return filtered;
|
return filtered;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<NetworkMapRepeater> _filterOnlineRepeatersBySettings(
|
||||||
|
List<NetworkMapRepeater> repeaters,
|
||||||
|
dynamic settings, {
|
||||||
|
required bool showGuessedLocations,
|
||||||
|
}) {
|
||||||
|
final keyPrefix = settings.mapKeyPrefix.trim().toLowerCase();
|
||||||
|
final now = DateTime.now();
|
||||||
|
|
||||||
|
return repeaters.where((repeater) {
|
||||||
|
if (repeater.isEstimated && !showGuessedLocations) return false;
|
||||||
|
|
||||||
|
final typeVisible = switch (repeater.type) {
|
||||||
|
advTypeRepeater => settings.mapShowRepeaters,
|
||||||
|
advTypeChat => settings.mapShowChatNodes,
|
||||||
|
_ => settings.mapShowOtherNodes,
|
||||||
|
};
|
||||||
|
if (!typeVisible) return false;
|
||||||
|
|
||||||
|
final freshnessVisible = switch (_freshness) {
|
||||||
|
_Freshness.all => true,
|
||||||
|
_Freshness.online => repeater.status == NetworkMapRepeaterStatus.active,
|
||||||
|
_Freshness.recent => repeater.status != NetworkMapRepeaterStatus.stale,
|
||||||
|
_Freshness.stale => repeater.status == NetworkMapRepeaterStatus.stale,
|
||||||
|
};
|
||||||
|
if (!freshnessVisible) return false;
|
||||||
|
|
||||||
|
if (settings.mapTimeFilterHours > 0 && repeater.lastSeen != null) {
|
||||||
|
final age = now.difference(repeater.lastSeen!).inHours;
|
||||||
|
if (age > settings.mapTimeFilterHours) return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return !settings.mapKeyPrefixEnabled ||
|
||||||
|
keyPrefix.isEmpty ||
|
||||||
|
repeater.key.toLowerCase().startsWith(keyPrefix);
|
||||||
|
}).toList();
|
||||||
|
}
|
||||||
|
|
||||||
List<Marker> _buildNodeMarkers(
|
List<Marker> _buildNodeMarkers(
|
||||||
List<Contact> contacts,
|
List<Contact> contacts,
|
||||||
settings, {
|
settings, {
|
||||||
@@ -2116,6 +2166,7 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
!settings.mapShowChatNodes,
|
!settings.mapShowChatNodes,
|
||||||
!settings.mapShowRepeaters,
|
!settings.mapShowRepeaters,
|
||||||
!settings.mapShowOtherNodes,
|
!settings.mapShowOtherNodes,
|
||||||
|
!settings.mapShowOnlineLinks,
|
||||||
settings.mapKeyPrefixEnabled,
|
settings.mapKeyPrefixEnabled,
|
||||||
].where((active) => active).length;
|
].where((active) => active).length;
|
||||||
|
|
||||||
@@ -3564,6 +3615,8 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
BuildContext context,
|
BuildContext context,
|
||||||
AppSettingsService settingsService,
|
AppSettingsService settingsService,
|
||||||
) {
|
) {
|
||||||
|
final showOnlineFilters =
|
||||||
|
context.read<UiViewStateService>().mapSource != MapSourceOption.local;
|
||||||
showMeshSheet(
|
showMeshSheet(
|
||||||
context,
|
context,
|
||||||
builder: (sheetContext) => StatefulBuilder(
|
builder: (sheetContext) => StatefulBuilder(
|
||||||
@@ -3694,6 +3747,14 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
|||||||
onChanged: (value) =>
|
onChanged: (value) =>
|
||||||
service.setMapShowOtherNodes(value),
|
service.setMapShowOtherNodes(value),
|
||||||
),
|
),
|
||||||
|
if (showOnlineFilters)
|
||||||
|
SwitchListTile(
|
||||||
|
title: Text(sheetContext.l10n.map_showOnlineLinks),
|
||||||
|
value: settings.mapShowOnlineLinks,
|
||||||
|
dense: true,
|
||||||
|
onChanged: (value) =>
|
||||||
|
service.setMapShowOnlineLinks(value),
|
||||||
|
),
|
||||||
SectionHeader(sheetContext.l10n.map_markers),
|
SectionHeader(sheetContext.l10n.map_markers),
|
||||||
SwitchListTile(
|
SwitchListTile(
|
||||||
title: Text(sheetContext.l10n.map_showSharedMarkers),
|
title: Text(sheetContext.l10n.map_showSharedMarkers),
|
||||||
|
|||||||
@@ -95,6 +95,10 @@ class AppSettingsService extends ChangeNotifier {
|
|||||||
await updateSettings(_settings.copyWith(mapShowOtherNodes: value));
|
await updateSettings(_settings.copyWith(mapShowOtherNodes: value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> setMapShowOnlineLinks(bool value) async {
|
||||||
|
await updateSettings(_settings.copyWith(mapShowOnlineLinks: value));
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> setMapShowOverlaps(bool value) async {
|
Future<void> setMapShowOverlaps(bool value) async {
|
||||||
await updateSettings(_settings.copyWith(mapShowOverlaps: value));
|
await updateSettings(_settings.copyWith(mapShowOverlaps: value));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ class NetworkMapOnlineController extends ChangeNotifier {
|
|||||||
List<NetworkMapLink> get links => _links;
|
List<NetworkMapLink> get links => _links;
|
||||||
NetworkMapLoadState get state => _state;
|
NetworkMapLoadState get state => _state;
|
||||||
|
|
||||||
void requestBounds(LatLngBounds bounds) {
|
void requestBounds(LatLngBounds bounds, {bool fetchLinks = true}) {
|
||||||
_timer?.cancel();
|
_timer?.cancel();
|
||||||
_timer = Timer(_debounce, () => _load(bounds));
|
_timer = Timer(_debounce, () => _load(bounds, fetchLinks: fetchLinks));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Drops any pending or in-flight request (the online layer was hidden).
|
/// Drops any pending or in-flight request (the online layer was hidden).
|
||||||
@@ -51,7 +51,7 @@ class NetworkMapOnlineController extends ChangeNotifier {
|
|||||||
_generation++;
|
_generation++;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _load(LatLngBounds bounds) async {
|
Future<void> _load(LatLngBounds bounds, {required bool fetchLinks}) async {
|
||||||
final boxes = NetworkMapBbox.forVisibleArea(
|
final boxes = NetworkMapBbox.forVisibleArea(
|
||||||
west: bounds.west,
|
west: bounds.west,
|
||||||
south: bounds.south,
|
south: bounds.south,
|
||||||
@@ -65,19 +65,21 @@ class NetworkMapOnlineController extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
_setState(NetworkMapLoadState.loading);
|
_setState(NetworkMapLoadState.loading);
|
||||||
try {
|
try {
|
||||||
final results = await Future.wait([
|
final repeaterFuture = Future.wait(boxes.map(_client.fetchRepeaters));
|
||||||
Future.wait(boxes.map(_client.fetchRepeaters)),
|
final Future<List<List<NetworkMapLink>>> linkFuture = fetchLinks
|
||||||
Future.wait(boxes.map((b) => _client.fetchLinks(b))),
|
? Future.wait<List<NetworkMapLink>>(
|
||||||
]);
|
boxes.map((b) => _client.fetchLinks(b)),
|
||||||
|
)
|
||||||
|
: Future.value(const <List<NetworkMapLink>>[]);
|
||||||
|
final repeaterResults = await repeaterFuture;
|
||||||
|
final linkResults = await linkFuture;
|
||||||
if (_disposed || generation != _generation) return;
|
if (_disposed || generation != _generation) return;
|
||||||
// Two boxes (antimeridian) can both return items on the seam.
|
// Two boxes (antimeridian) can both return items on the seam.
|
||||||
_repeaters = {
|
_repeaters = {
|
||||||
for (final r in results[0].expand((l) => l as List<NetworkMapRepeater>))
|
for (final r in repeaterResults.expand((l) => l)) r.key: r,
|
||||||
r.key: r,
|
|
||||||
}.values.toList();
|
}.values.toList();
|
||||||
_links = {
|
_links = {
|
||||||
for (final l in results[1].expand((l) => l as List<NetworkMapLink>))
|
for (final l in linkResults.expand((l) => l)) '${l.a}:${l.b}': l,
|
||||||
'${l.a}:${l.b}': l,
|
|
||||||
}.values.toList();
|
}.values.toList();
|
||||||
_setState(NetworkMapLoadState.ready);
|
_setState(NetworkMapLoadState.ready);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
@@ -140,20 +142,27 @@ Polyline _onlineLinkPolyline(NetworkMapLink link, {required bool simple}) {
|
|||||||
/// their hexagon outline is added.
|
/// their hexagon outline is added.
|
||||||
List<Widget> buildNetworkMapOnlineLayers({
|
List<Widget> buildNetworkMapOnlineLayers({
|
||||||
required NetworkMapOnlineController controller,
|
required NetworkMapOnlineController controller,
|
||||||
|
List<NetworkMapRepeater>? repeaters,
|
||||||
|
bool showLinks = true,
|
||||||
required Set<String> localMarkerKeys,
|
required Set<String> localMarkerKeys,
|
||||||
required ValueChanged<NetworkMapRepeater> onTap,
|
required ValueChanged<NetworkMapRepeater> onTap,
|
||||||
}) {
|
}) {
|
||||||
final repeaters = controller.repeaters;
|
final visibleRepeaters = repeaters ?? controller.repeaters;
|
||||||
final links = controller.links;
|
final visibleKeys = {for (final repeater in visibleRepeaters) repeater.key};
|
||||||
final dropHexagons = repeaters.length > networkMapDenseNodeCount;
|
final links = [
|
||||||
|
for (final link in controller.links)
|
||||||
|
if (visibleKeys.contains(link.a) && visibleKeys.contains(link.b)) link,
|
||||||
|
];
|
||||||
|
final dropHexagons = visibleRepeaters.length > networkMapDenseNodeCount;
|
||||||
final simpleLines = links.length > networkMapDenseLinkCount;
|
final simpleLines = links.length > networkMapDenseLinkCount;
|
||||||
return [
|
return [
|
||||||
PolylineLayer(
|
if (showLinks)
|
||||||
polylines: [
|
PolylineLayer(
|
||||||
for (final link in links)
|
polylines: [
|
||||||
_onlineLinkPolyline(link, simple: simpleLines),
|
for (final link in links)
|
||||||
],
|
_onlineLinkPolyline(link, simple: simpleLines),
|
||||||
),
|
],
|
||||||
|
),
|
||||||
if (!dropHexagons)
|
if (!dropHexagons)
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -163,7 +172,7 @@ List<Widget> buildNetworkMapOnlineLayers({
|
|||||||
child: PolygonLayer<NetworkMapRepeater>(
|
child: PolygonLayer<NetworkMapRepeater>(
|
||||||
hitNotifier: controller.hitNotifier,
|
hitNotifier: controller.hitNotifier,
|
||||||
polygons: [
|
polygons: [
|
||||||
for (final repeater in repeaters)
|
for (final repeater in visibleRepeaters)
|
||||||
if (repeater.cell.boundary.length >= 3)
|
if (repeater.cell.boundary.length >= 3)
|
||||||
Polygon<NetworkMapRepeater>(
|
Polygon<NetworkMapRepeater>(
|
||||||
points: repeater.cell.boundary,
|
points: repeater.cell.boundary,
|
||||||
@@ -184,7 +193,7 @@ List<Widget> buildNetworkMapOnlineLayers({
|
|||||||
),
|
),
|
||||||
MarkerLayer(
|
MarkerLayer(
|
||||||
markers: [
|
markers: [
|
||||||
for (final repeater in repeaters)
|
for (final repeater in visibleRepeaters)
|
||||||
if (!localMarkerKeys.contains(repeater.key))
|
if (!localMarkerKeys.contains(repeater.key))
|
||||||
Marker(
|
Marker(
|
||||||
point: repeater.cell.center,
|
point: repeater.cell.center,
|
||||||
|
|||||||
@@ -450,6 +450,13 @@ void main() {
|
|||||||
expect(AppSettings.fromJson(saved).loadLinkImages, isFalse);
|
expect(AppSettings.fromJson(saved).loadLinkImages, isFalse);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('online map links default on and round-trip through JSON', () {
|
||||||
|
expect(AppSettings().mapShowOnlineLinks, isTrue);
|
||||||
|
expect(AppSettings.fromJson({}).mapShowOnlineLinks, isTrue);
|
||||||
|
final saved = AppSettings(mapShowOnlineLinks: false).toJson();
|
||||||
|
expect(AppSettings.fromJson(saved).mapShowOnlineLinks, isFalse);
|
||||||
|
});
|
||||||
|
|
||||||
test('show link images by default is off and round-trips', () {
|
test('show link images by default is off and round-trips', () {
|
||||||
expect(AppSettings().showLinkImagesByDefault, isFalse);
|
expect(AppSettings().showLinkImagesByDefault, isFalse);
|
||||||
expect(AppSettings.fromJson({}).showLinkImagesByDefault, isFalse);
|
expect(AppSettings.fromJson({}).showLinkImagesByDefault, isFalse);
|
||||||
|
|||||||
+103
-1
@@ -1 +1,103 @@
|
|||||||
{}
|
{
|
||||||
|
"bg": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"de": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"es": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"fr": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"hu": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"it": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"ja": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"ko": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"nl": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"pl": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"pt": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"ru": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"sk": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"sl": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"sv": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"uk": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
],
|
||||||
|
|
||||||
|
"zh": [
|
||||||
|
"appSettings_showOnlineLinks",
|
||||||
|
"appSettings_showOnlineLinksSubtitle",
|
||||||
|
"map_showOnlineLinks"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in new issue
Block a user