mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-13 11:17:22 +02:00
add dev_config to centralize hardcoded stuff into one place.
This commit is contained in:
1 parent
312f71af4b
commit
160bc8f9f2
5 files changed
+42
-13
No files matched your search
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:latlong2/latlong.dart';
|
||||
|
||||
import 'package:flock_map_app/dev_config.dart';
|
||||
import '../app_state.dart';
|
||||
import '../widgets/map_view.dart';
|
||||
import 'package:flutter_map/flutter_map.dart';
|
||||
@@ -133,8 +134,7 @@ class _DownloadAreaDialogState extends State<DownloadAreaDialog> {
|
||||
final minZoom = findDynamicMinZoom(bounds);
|
||||
final maxZoom = _zoom.toInt();
|
||||
final nTiles = computeTileList(bounds, minZoom, maxZoom).length;
|
||||
const kbPerTile = 25.0; // Empirically ~6.5kB average for OSM tiles at z=1-19
|
||||
final totalMb = (nTiles * kbPerTile) / 1024.0;
|
||||
final totalMb = (nTiles * kTileEstimateKb) / 1024.0;
|
||||
setState(() {
|
||||
_minZoom = minZoom;
|
||||
_tileCount = nTiles;
|
||||
|
||||
Reference in new issue
Block a user