mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-10 06:28:38 +02:00
Fix opentopomap x/y, allow searching in release when not offline
This commit is contained in:
@@ -43,6 +43,24 @@ const bool kEnableDevelopmentModes = false; // Set to false to hide sandbox/simu
|
||||
// Navigation features - set to false to hide navigation UI elements while in development
|
||||
const bool kEnableNavigationFeatures = kEnableDevelopmentModes; // Hide navigation until fully implemented
|
||||
|
||||
/// Search availability: dev builds always, release builds only when online
|
||||
bool enableSearchFeatures({required bool offlineMode}) {
|
||||
if (kEnableDevelopmentModes) {
|
||||
return true; // Dev builds: always allow search
|
||||
} else {
|
||||
return !offlineMode; // Release builds: only when online
|
||||
}
|
||||
}
|
||||
|
||||
/// Navigation availability: only dev builds, and only when online
|
||||
bool enableNavigationFeatures({required bool offlineMode}) {
|
||||
if (!kEnableDevelopmentModes) {
|
||||
return false; // Release builds: never allow navigation
|
||||
} else {
|
||||
return !offlineMode; // Dev builds: only when online
|
||||
}
|
||||
}
|
||||
|
||||
// Marker/node interaction
|
||||
const int kCameraMinZoomLevel = 10; // Minimum zoom to show nodes (Overpass)
|
||||
const int kOsmApiMinZoomLevel = 13; // Minimum zoom for OSM API bbox queries (sandbox mode)
|
||||
|
||||
Reference in New Issue
Block a user