Commit 8fae2859 authored by Ratnadeep Rajendra Kharade's avatar Ratnadeep Rajendra Kharade
Browse files

Zoomed on selected bike on map.

parent bc8992ec
......@@ -264,10 +264,13 @@ export class HomePage implements OnInit, OnDestroy {
}
showBikeDetails(bike) {
//console.log(bike);
this.selectedBike = bike;
this.distance= bike.distance;
this.distanceService.setDistance(this.distance);
this.isDetailsVisible = true;
this.map.setCenter({ lat: bike.lat, lng: bike.lon });
this.map.setZoom(17);
}
reserveBike() {
......
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