Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hdastageeri
hft_awado_app
Commits
8086bc6d
Commit
8086bc6d
authored
Jan 13, 2020
by
Ratnadeep Rajendra Kharade
Browse files
Fixed issue : Maps not loading.
parent
e7709aae
Changes
3
Show whitespace changes
Inline
Side-by-side
src/app/hirebike/hirebike.page.ts
View file @
8086bc6d
...
@@ -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
();
},
30
0000
);
},
2
0000
);
}
}
},
(
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
);
...
...
src/app/home/home.page.ts
View file @
8086bc6d
...
@@ -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();
...
...
src/app/myreservation/myreservation.page.ts
View file @
8086bc6d
...
@@ -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();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment