diff --git a/src/app/hirebike/hirebike.page.ts b/src/app/hirebike/hirebike.page.ts index 2f05855497dcbe3871cc65ebf9a9d30d4e21a8b8..c46ff3ffc6ff97b1822092296a964a0af14482ab 100644 --- a/src/app/hirebike/hirebike.page.ts +++ b/src/app/hirebike/hirebike.page.ts @@ -478,7 +478,7 @@ export class HirebikePage implements OnInit { } else { this.intervalRef = setInterval(() => { this.sendUsageDataToBackend(); - }, 300000); + }, 20000); } }, (error) => { console.log(error); @@ -1017,7 +1017,7 @@ export class HirebikePage implements OnInit { ionViewDidLeave() { console.log("Route: Ion View Left.") if (this.mapElement) { - this.mapElement.nativeElement.remove(); + //this.mapElement.nativeElement.remove(); } if (this.intervalRef) { clearInterval(this.intervalRef); diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index 3405d9e84119be711b16ccbfeaef56e79318feb6..e7c4f5701a477505b0dce20c18160eb15d656103 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -297,7 +297,7 @@ export class HomePage implements OnInit, OnDestroy { ionViewDidLeave(){ if(this.mapElement) { - this.mapElement.nativeElement.remove(); + //this.mapElement.nativeElement.remove(); } // if(this.locationService.liveLocationSubject) { // this.locationService.liveLocationSubject.unsubscribe(); diff --git a/src/app/myreservation/myreservation.page.ts b/src/app/myreservation/myreservation.page.ts index cf1e1584b2a62a1a9326b852aebe8d828777b3d4..ec97c002eba083989481e3ef63134edfceaec600 100644 --- a/src/app/myreservation/myreservation.page.ts +++ b/src/app/myreservation/myreservation.page.ts @@ -353,7 +353,7 @@ export class MyreservationPage implements OnInit { ionViewDidLeave(){ if(this.mapElement) { - this.mapElement.nativeElement.remove(); + //this.mapElement.nativeElement.remove(); } // if(this.locationService.liveLocationSubject) { // this.locationService.liveLocationSubject.unsubscribe();