34 lines
1.1 KiB
Dart
34 lines
1.1 KiB
Dart
import 'package:latlong2/latlong.dart';
|
|
|
|
class AppConstants {
|
|
AppConstants._();
|
|
|
|
/// Default backend URL when none is configured.
|
|
static const String defaultBackendUrl = 'http://192.168.2.59:8080';
|
|
|
|
/// Default Martin tile server URL when none is configured.
|
|
static const String defaultMartinUrl = 'http://192.168.2.59:3001';
|
|
|
|
/// Default map center: Amsterdam.
|
|
static const double defaultLat = 52.3676;
|
|
static const double defaultLon = 4.9041;
|
|
static final LatLng defaultCenter = LatLng(defaultLat, defaultLon);
|
|
|
|
/// Zoom levels.
|
|
static const double minZoom = 6;
|
|
static const double maxZoom = 18;
|
|
static const double defaultZoom = 13;
|
|
static const double poiZoom = 16;
|
|
static const double cityZoom = 12;
|
|
|
|
/// Search debounce duration in milliseconds.
|
|
static const int searchDebounceMs = 300;
|
|
|
|
/// Maximum search history entries.
|
|
static const int maxSearchHistory = 50;
|
|
|
|
/// Settings keys.
|
|
static const String settingBackendUrl = 'backend_url';
|
|
static const String settingMartinUrl = 'martin_url';
|
|
static const String settingThemeMode = 'theme_mode';
|
|
}
|