same here, it doesn't render the route. It's just a straight line from A to B
I guess because the Routemap has this in it and acarsmap doesn't. So if anyone can check how to add that to acarsmap.....
One sidenote to make : this should get it's info from the acarsdata table in the db instead of the schedules. Acarsdata copies the route from the schedules anyway and if a pilot enters his own route, that one is taken.
<?php
/* Populate the route */
if(is_array($mapdata->route_details))
{
$list = array();
foreach($mapdata->route_details as $route)
{
if($route->type == NAV_VOR)
{
$icon = fileurl('/lib/images/icon_vor.png');
}
else
{
$icon = fileurl('/lib/images/icon_fix.png');
}
echo 'var loc = new google.maps.LatLng('.$route->lat.', '.$route->lng.');
var _marker = new google.maps.Marker({
position: loc,
map: map,
icon: "'.$icon.'",
title: "'.$route->title.'"
});
bounds.extend(loc);';
// For the polyline
$list[] = "new google.maps.LatLng({$route->lat}, {$route->lng})";
}
}
?>