updated cp start back to minus one and auto center timer to 10 sec
This commit is contained in:
@ -31,8 +31,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
|
||||
Image getImage() {
|
||||
String serverUrl = ConstValues.currentServer();
|
||||
|
||||
if (indexController.rogMode == 1) {
|
||||
//print("----- rogaining mode 1");
|
||||
if (indexController.currentDestinationFeature.isEmpty ||
|
||||
indexController.currentDestinationFeature[0].photos! == "") {
|
||||
return const Image(image: AssetImage('assets/images/empty_image.png'));
|
||||
@ -63,7 +63,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
}
|
||||
} else {
|
||||
GeoJSONFeature gf = indexController.currentFeature[0];
|
||||
//print("=== photo sss ${gf.properties!["photos"]}");
|
||||
print("=== photo sss ${gf.properties!["photos"]}");
|
||||
if (gf.properties!["photos"] == null || gf.properties!["photos"] == "") {
|
||||
return const Image(image: AssetImage('assets/images/empty_image.png'));
|
||||
} else {
|
||||
|
||||
@ -88,7 +88,7 @@ class _MapWidgetState extends State<MapWidget> {
|
||||
Icons.circle,
|
||||
size: 6.0,
|
||||
),
|
||||
i.properties!['cp'] == -1 || i.properties!['cp'] == 0
|
||||
i.properties!['cp'] == -1
|
||||
? Transform.translate(
|
||||
offset: Offset(18, 0),
|
||||
child: Transform.rotate(
|
||||
@ -167,8 +167,7 @@ class _MapWidgetState extends State<MapWidget> {
|
||||
}
|
||||
|
||||
void _startIdleTimer() {
|
||||
_timer =
|
||||
Timer(const Duration(milliseconds: (1000 * 60 * 10)), _centerMapOnUser);
|
||||
_timer = Timer(const Duration(milliseconds: (1000 * 10)), _centerMapOnUser);
|
||||
}
|
||||
|
||||
void _resetTimer() {
|
||||
@ -180,7 +179,7 @@ class _MapWidgetState extends State<MapWidget> {
|
||||
indexController.mapController.move(
|
||||
LatLng(
|
||||
destinationController.currentLat, destinationController.currentLon),
|
||||
15.0);
|
||||
17.0);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user