Solved bugs

master
NoNameGuy 2017-09-08 14:20:36 +01:00
parent 0f12a46bc8
commit c6d6bb430b
5 changed files with 12 additions and 8 deletions

View File

@ -32,6 +32,8 @@ footer {
}
}
.ui-autocomplete.ui-menu .ui-menu-item.ui-state-focus { background-color: rgba(0,0,0,0.4); }
#map{
width: 85%;
height: 650px;

View File

@ -603,9 +603,10 @@ var array2;
travelMode: 'DRIVING'
}, function(response, status) {
if (status === 'OK') {
directionsDisplay.setDirections(response);
var route = response.routes[0];
routePoints = route;
directionsDisplay.setDirections(response);
var route = response.routes[0];
routePoints = route;
//console.table(routePoints);
//console.table(route);
//console.log(tempOrigin);
//console.log(tempDestination);
@ -678,7 +679,7 @@ var array2;
stopover: true,
//location: new google.maps.LatLng(51.263439, 1.03489)
}],*/
avoidTolls: !$('#upPaidRoads').is(':checked'),
avoidTolls: $('#upPaidRoads').is(':checked'),
travelMode: google.maps.TravelMode.DRIVING
}, function(response, status) {
if (status === google.maps.DirectionsStatus.OK) {
@ -794,6 +795,7 @@ markers[0].forEach(function(marker){
location:currentMarker.position,
stopover: true
});
calculateAndDisplayRoute(directionsService, directionsDisplay);
});

View File

@ -26,7 +26,7 @@
{{csrf_field()}}
<div class="col-lg-6">
<div class="form-group">
<label for="district">Distrito(s): </label>
<label for="district">Distrito: </label>
<input class="form-control" id="district" name="district" type="text" @if(Auth::user() && isset($location)) value="$location" @endif>
</div>
</div>
@ -114,7 +114,7 @@
<label for="nome">Preço: </label>
{{$station->fuelPrice}}
<a href="{{route('stationDetails', $station->stationId)}}">Station Details</a>
<a href="{{route('stationDetails', $station->stationId)}}">Detalhes</a>
<!--<button type="button" class="btn btn-link" style="float:right">Detalhes</button>-->
<img src="../../files/{{$key+1}}.jpg"></img>

View File

@ -19,7 +19,7 @@
<div class="col-lg-6">
<div class="list-group" id="vehicleList">
<div class="list-group" id="vehicleList" style="color:black">
@if($vehicles)

View File

@ -26,7 +26,7 @@
</div>
<div class="col-lg-6">
<div class="col-lg-6" style="color:black">
<div class="container-fluid">
<form method="post" action="{{route('selectVehicle')}}">