MENA region data enrichment scripts` -> Wait, let's keep it concise and clean.
* *Option 3:* `feat: add tourist landmarks support with UI sheets, data models
This commit is contained in:
@@ -55,6 +55,17 @@ class NavigationState extends Equatable {
|
||||
final double vehicleScale;
|
||||
final List<String> recentSearches;
|
||||
final bool isSearching;
|
||||
final bool isOrbiting;
|
||||
final double orbitSpeed;
|
||||
final bool isSunPlaying;
|
||||
final int sunTimeMinutes;
|
||||
final double terrainExaggeration;
|
||||
final double cameraTilt;
|
||||
final bool showBuildings;
|
||||
final bool showContours;
|
||||
final bool showHillshading;
|
||||
final bool isTouristModeEnabled;
|
||||
final String? selectedLandmarkId;
|
||||
|
||||
const NavigationState({
|
||||
this.status = NavigationStatus.initial,
|
||||
@@ -92,6 +103,17 @@ class NavigationState extends Equatable {
|
||||
this.vehicleScale = 1.8,
|
||||
this.recentSearches = const [],
|
||||
this.isSearching = false,
|
||||
this.isOrbiting = false,
|
||||
this.orbitSpeed = 1.0,
|
||||
this.isSunPlaying = false,
|
||||
this.sunTimeMinutes = 1110,
|
||||
this.terrainExaggeration = 2.0,
|
||||
this.cameraTilt = 55.0,
|
||||
this.showBuildings = true,
|
||||
this.showContours = true,
|
||||
this.showHillshading = true,
|
||||
this.isTouristModeEnabled = false,
|
||||
this.selectedLandmarkId,
|
||||
});
|
||||
|
||||
RouteData? get currentRoute =>
|
||||
@@ -166,6 +188,18 @@ class NavigationState extends Equatable {
|
||||
double? vehicleScale,
|
||||
List<String>? recentSearches,
|
||||
bool? isSearching,
|
||||
bool? isOrbiting,
|
||||
double? orbitSpeed,
|
||||
bool? isSunPlaying,
|
||||
int? sunTimeMinutes,
|
||||
double? terrainExaggeration,
|
||||
double? cameraTilt,
|
||||
bool? showBuildings,
|
||||
bool? showContours,
|
||||
bool? showHillshading,
|
||||
bool? isTouristModeEnabled,
|
||||
String? selectedLandmarkId,
|
||||
bool clearSelectedLandmark = false,
|
||||
}) {
|
||||
return NavigationState(
|
||||
status: status ?? this.status,
|
||||
@@ -205,6 +239,17 @@ class NavigationState extends Equatable {
|
||||
vehicleScale: vehicleScale ?? this.vehicleScale,
|
||||
recentSearches: recentSearches ?? this.recentSearches,
|
||||
isSearching: isSearching ?? this.isSearching,
|
||||
isOrbiting: isOrbiting ?? this.isOrbiting,
|
||||
orbitSpeed: orbitSpeed ?? this.orbitSpeed,
|
||||
isSunPlaying: isSunPlaying ?? this.isSunPlaying,
|
||||
sunTimeMinutes: sunTimeMinutes ?? this.sunTimeMinutes,
|
||||
terrainExaggeration: terrainExaggeration ?? this.terrainExaggeration,
|
||||
cameraTilt: cameraTilt ?? this.cameraTilt,
|
||||
showBuildings: showBuildings ?? this.showBuildings,
|
||||
showContours: showContours ?? this.showContours,
|
||||
showHillshading: showHillshading ?? this.showHillshading,
|
||||
isTouristModeEnabled: isTouristModeEnabled ?? this.isTouristModeEnabled,
|
||||
selectedLandmarkId: clearSelectedLandmark ? null : (selectedLandmarkId ?? this.selectedLandmarkId),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -245,5 +290,16 @@ class NavigationState extends Equatable {
|
||||
vehicleScale,
|
||||
recentSearches,
|
||||
isSearching,
|
||||
isOrbiting,
|
||||
orbitSpeed,
|
||||
isSunPlaying,
|
||||
sunTimeMinutes,
|
||||
terrainExaggeration,
|
||||
cameraTilt,
|
||||
showBuildings,
|
||||
showContours,
|
||||
showHillshading,
|
||||
isTouristModeEnabled,
|
||||
selectedLandmarkId,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user