mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-14 03:30:56 +02:00
Fix offline area size estimates, zoom level metadata display
This commit is contained in:
1 parent
25f0e358a3
commit
7c49b38230
3 files changed
+7
-9
No files matched your search
@@ -99,10 +99,10 @@ class LocalizationService extends ChangeNotifier {
|
||||
|
||||
String result = current is String ? current : key;
|
||||
|
||||
// Replace parameters if provided
|
||||
// Replace parameters if provided - replace first occurrence only for each parameter
|
||||
if (params != null) {
|
||||
for (int i = 0; i < params.length; i++) {
|
||||
result = result.replaceAll('{}', params[i]);
|
||||
result = result.replaceFirst('{}', params[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ class OfflineAreaDownloader {
|
||||
);
|
||||
area.nodes = nodes;
|
||||
await OfflineAreaDownloader.saveNodes(nodes, directory);
|
||||
debugPrint('Area ${area.id}: Downloaded ${nodes.length} nodes from modestly expanded bounds (zoom $nodeZoom vs tile minZoom $minZoom)');
|
||||
debugPrint('Area ${area.id}: Downloaded ${nodes.length} nodes from modestly expanded bounds (all profiles)');
|
||||
}
|
||||
|
||||
/// Calculate expanded bounds that cover the entire tile area at minimum zoom
|
||||
|
||||
Reference in new issue
Block a user