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
6d40ac67
Commit
6d40ac67
authored
Dec 02, 2019
by
Ratnadeep Rajendra Kharade
Browse files
Set default coordinates to Stuttgart Hauptbahnhof if user location is not available.
parent
67e868bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/home/home.page.ts
View file @
6d40ac67
...
...
@@ -20,12 +20,11 @@ export class HomePage implements OnInit {
private
map
:
any
;
private
defaultLayers
:
any
;
private
locationsGroup
:
any
;
private
currentUserPosition
=
{
lat
:
0
,
lng
:
0
};
private
currentUserPosition
=
{
lat
:
48.783480
,
lng
:
9.180319
};
bikes
=
[];
bikeApi
:
Observable
<
any
>
;
private
currentLocation
=
{
lat
:
0
,
lng
:
0
};
public
isDetailsVisible
=
false
;
public
selectedBike
=
{
id
:
0
};
public
isBikeReserved
=
false
;
...
...
@@ -206,8 +205,8 @@ export class HomePage implements OnInit {
).
then
((
resp
)
=>
{
let
lat
=
resp
.
coords
.
latitude
;
let
lng
=
resp
.
coords
.
longitude
;
this
.
current
Loca
tion
.
lat
=
resp
.
coords
.
latitude
;
this
.
current
Loca
tion
.
lng
=
resp
.
coords
.
longitude
;
this
.
current
UserPosi
tion
.
lat
=
resp
.
coords
.
latitude
;
this
.
current
UserPosi
tion
.
lng
=
resp
.
coords
.
longitude
;
this
.
showUserLocationOnMap
(
lat
,
lng
);
},
er
=>
{
//alert('Can not retrieve Location')
...
...
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