Commit 8086bc6d authored by Ratnadeep Rajendra Kharade's avatar Ratnadeep Rajendra Kharade
Browse files

Fixed issue : Maps not loading.

parent e7709aae
...@@ -478,7 +478,7 @@ export class HirebikePage implements OnInit { ...@@ -478,7 +478,7 @@ export class HirebikePage implements OnInit {
} else { } else {
this.intervalRef = setInterval(() => { this.intervalRef = setInterval(() => {
this.sendUsageDataToBackend(); this.sendUsageDataToBackend();
}, 300000); }, 20000);
} }
}, (error) => { }, (error) => {
console.log(error); console.log(error);
...@@ -1017,7 +1017,7 @@ export class HirebikePage implements OnInit { ...@@ -1017,7 +1017,7 @@ export class HirebikePage implements OnInit {
ionViewDidLeave() { ionViewDidLeave() {
console.log("Route: Ion View Left.") console.log("Route: Ion View Left.")
if (this.mapElement) { if (this.mapElement) {
this.mapElement.nativeElement.remove(); //this.mapElement.nativeElement.remove();
} }
if (this.intervalRef) { if (this.intervalRef) {
clearInterval(this.intervalRef); clearInterval(this.intervalRef);
......
...@@ -297,7 +297,7 @@ export class HomePage implements OnInit, OnDestroy { ...@@ -297,7 +297,7 @@ export class HomePage implements OnInit, OnDestroy {
ionViewDidLeave(){ ionViewDidLeave(){
if(this.mapElement) { if(this.mapElement) {
this.mapElement.nativeElement.remove(); //this.mapElement.nativeElement.remove();
} }
// if(this.locationService.liveLocationSubject) { // if(this.locationService.liveLocationSubject) {
// this.locationService.liveLocationSubject.unsubscribe(); // this.locationService.liveLocationSubject.unsubscribe();
......
...@@ -353,7 +353,7 @@ export class MyreservationPage implements OnInit { ...@@ -353,7 +353,7 @@ export class MyreservationPage implements OnInit {
ionViewDidLeave(){ ionViewDidLeave(){
if(this.mapElement) { if(this.mapElement) {
this.mapElement.nativeElement.remove(); //this.mapElement.nativeElement.remove();
} }
// if(this.locationService.liveLocationSubject) { // if(this.locationService.liveLocationSubject) {
// this.locationService.liveLocationSubject.unsubscribe(); // this.locationService.liveLocationSubject.unsubscribe();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment