temporary update
This commit is contained in:
@ -32,6 +32,8 @@ class LocationController extends GetxController {
|
||||
// Reactive variable to hold the current position
|
||||
Rx<Position?> currentPosition = Rx<Position?>(null);
|
||||
// 現在の位置情報を保持するReactive変数です。Rx<Position?>型で宣言されています。
|
||||
final locationMarkerPositionStreamController = StreamController<LocationMarkerPosition?>.broadcast();
|
||||
|
||||
|
||||
// Subscription to the position stream
|
||||
StreamSubscription<Position>? positionStream;
|
||||
@ -154,8 +156,8 @@ class LocationController extends GetxController {
|
||||
|
||||
//===== Akira Added 2024-4-9 end
|
||||
|
||||
final locationMarkerPositionStreamController =
|
||||
StreamController<LocationMarkerPosition?>.broadcast();
|
||||
//final locationMarkerPositionStreamController =
|
||||
// StreamController<LocationMarkerPosition?>.broadcast();
|
||||
// 位置マーカーの位置情報を送信するためのStreamControllerです。
|
||||
// StreamController<LocationMarkerPosition?>型で宣言されています。
|
||||
|
||||
@ -202,6 +204,7 @@ class LocationController extends GetxController {
|
||||
}
|
||||
|
||||
startPositionStream();
|
||||
debugPrint("Started startPositionStream");
|
||||
} catch( e ){
|
||||
print('Error initializing location service: $e');
|
||||
}
|
||||
@ -235,7 +238,12 @@ class LocationController extends GetxController {
|
||||
accuracy: position.accuracy,
|
||||
),
|
||||
);
|
||||
});
|
||||
},
|
||||
onError: (error) {
|
||||
debugPrint('Error in Geolocator stream: $error');
|
||||
locationMarkerPositionStreamController.addError(error);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void startPositionStream_old() async {
|
||||
@ -248,7 +256,7 @@ class LocationController extends GetxController {
|
||||
return;
|
||||
}
|
||||
|
||||
await PermissionController.checkAndRequestPermissions();
|
||||
//await PermissionController.checkAndRequestPermissions();
|
||||
|
||||
// 位置情報の設定を行います。z11
|
||||
// Set up the location options
|
||||
|
||||
Reference in New Issue
Block a user