merge
This commit is contained in:
parent
6e0eb2abcc
commit
c6edbdee65
1 changed files with 6 additions and 2 deletions
|
@ -59,15 +59,19 @@
|
||||||
attribution: 'OpenStreetMap'
|
attribution: 'OpenStreetMap'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
@for($idx = 0; $idx <= count($trip->locations); $idx += 99)
|
@for($idx = 3; $idx <= count($trip->locations); $idx += 99)
|
||||||
/*
|
/*
|
||||||
* Populate the route line.
|
* Populate the route line.
|
||||||
*/
|
*/
|
||||||
L.polyline([
|
L.polyline([
|
||||||
@foreach(array_slice($trip->locations, $idx, 100) as $location)
|
@foreach(array_slice($trip->locations, $idx, 100) as $location)
|
||||||
@if(!in_array($location->id, config('app.current_trip_ignore')))
|
@if(!in_array($location->id, config('app.current_trip_ignore')))
|
||||||
|
@if(in_array($location->id, [19014, 19015, 19016, 19017, 19018, 19019]))
|
||||||
|
[9.071389, -79.383611],
|
||||||
|
@else
|
||||||
[{{ $location->latitude }}, {{ $location->longitude }}],
|
[{{ $location->latitude }}, {{ $location->longitude }}],
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
], {
|
], {
|
||||||
@php $colour = 180 * ( 1.0 - ( ( $idx ) / ( count($trip->locations) ) ) ); @endphp
|
@php $colour = 180 * ( 1.0 - ( ( $idx ) / ( count($trip->locations) ) ) ); @endphp
|
||||||
|
|
Loading…
Reference in a new issue