Guest lorathon Posted April 9, 2010 Report Posted April 9, 2010 I believe there is an error in the flown routes template. The following code will continue if a route has the same depicao or arricao. What happens is that two flight departing from the same location are not shown. Only one will be shown (the first in line) I commented out the first part and just had the loop continue if the flight numbers were in the $shown array This is my commented out code foreach($allschedules as $route) { /* // Dont show repeated routes if(in_array($route->depicao, $shown)) continue; else $shown[] = $route->depicao; if(in_array($route->arricao, $shown)) continue; else $shown[] = $route->arricao; */ if(in_array($route->code.$route->flightnum, $shown)) continue; else $shown[] = $route->code.$route->flightnum; if(empty($route->arrlat) || empty($route->arrlng) || empty($route->deplat) || empty($route->deplng)) { continue; } Quote
Moderators mark1million Posted April 9, 2010 Moderators Report Posted April 9, 2010 I wondered why there wasnt many flights on my map I was looking at this yesterday as well , Cheers.... Quote
Moderators mark1million Posted April 9, 2010 Moderators Report Posted April 9, 2010 OMG..... Thats fixed it Route lines everywhere...... Quote
MrAmsterdam Posted April 21, 2010 Report Posted April 21, 2010 YEAH! nice!! Thanks for the solution!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.