-
- {{bike.name}}
+
+
+ {{bike.name}}
+
+
+
+
+
+
{{bike.batteryPercentage + " %"}}
+
+
+
{{bike.distance + "m"}}
+
{{bike.address}}
+
-
-
-
{{bike.batteryPercentage + " %"}}
+
+
+
+
+
+
+
+
+
+
+
+ Bike Name
+
+
+ {{selectedBike.name}}
+
+
+
+
+ Battery Level
+
+
+
+
+ {{selectedBike.batteryPercentage + " %"}}
+
+
+
+
+ Bike Location
+
+
+ {{selectedBike.address}}
+
+
+
+
+ Bike Distance
+
+
+ {{selectedBike.distance + "m"}}
+
+
+
+
+ Reserve
+
+
+ Navigate
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/app/home/home.page.scss b/src/app/home/home.page.scss
index ad23a37ddafdd5afa5f7986772357fb31cf50969..3762aeac0023826c387752b91cd3198788750df1 100644
--- a/src/app/home/home.page.scss
+++ b/src/app/home/home.page.scss
@@ -99,4 +99,8 @@ ion-footer{
.get-position{
margin-bottom:10px;
+}
+
+.button-container{
+ clear: both;
}
\ No newline at end of file
diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts
index 4d5101bb736a58ca681020de8dc9716cfb83f0dd..16fd7c2dbf52b2309fa4b0f87d244c9d6bd0fb0e 100644
--- a/src/app/home/home.page.ts
+++ b/src/app/home/home.page.ts
@@ -23,6 +23,8 @@ export class HomePage {
private currentLocation = { lat: 0, lng: 0 };
public is3DChecked = false;
+ public isDetailsVisible = false;
+ public selectedBike ={};
public tempArr = [1, 2];
public locationArr = [{ lat: 48.778409, lng: 9.179252 },
@@ -223,4 +225,11 @@ export class HomePage {
this.loadmap("3D");
}, 100);
}
+
+ showBikeDetails(bike) {
+
+ this.selectedBike=bike;
+ this.isDetailsVisible = true;
+ }
+
}