Jump to content

Recommended Posts

Posted

I have routes plotting properly in the pirep and schedule viewer. (For the most part).

They aren't being plotted in the acarsmap. Has anyone been able to tweak the .js to get this working properly?

Posted

That's not 100% true Kyle. All my members type their routes in kACARS for every flight. The only routes that show are the path traveled in the view pirep. It never shows on the live map on mine.

  • Moderators
Posted

It did for me when I was running SCXVA. Maybe that's in the Beta Version I think.

We are talking about the Flight Route, not path traveled.

  • Moderators
Posted

Do you have the NavData in your database?

I'm not sure, but I'm pretty sure I have the routes populated on my ACARS Map before. Maybe, or not with one of my DeJaVu's. :lol:

Posted

Yep, I have no problem seeing the route plotted for PIREPs or schedule briefings. It's just the acarsmap. It looks like the .js is boned up but it's not really my forte to figure out exactly where.

  • 6 months later...
Posted

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})";
}
}
?>

  • 3 months later...
  • 5 weeks later...
Posted

I think I finally fixed this.

The culprit is ACARS.php, with the line:

$flight->route_details = NavData::parseRoute($flight->route);

parseRoute actually needs several items from that route (lat, lng, and route). The following worked for me:

$schedule = SchedulesData::getSchedulebyFlight(substr($flight->flightnum,0,3),substr($flight->flightnum,3));

$flight->route_details = NavData::parseRoute($schedule);

Now to figure out why it calls the clearPreviousMarkers() a few seconds after it displays.

  • 1 month later...
Posted

It would be better to get the data from acarsdata because like in our VA a lot of pleople fly charters en make their own route.

Maybe somebody has a clue?

Regards,

Cor

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...