Tylor Eddy Posted October 11, 2011 Report Posted October 11, 2011 G'day Guys, I've been fiddling with the navdata, going through all my routes, and updating the navdata to display the routes correctly, and working hard to make it all look a lot nicer. I've noticed that the waypoints along the airways are within the navdata, but for some reason they wont show, it will only show the navaids for the start and finish of the airway, is there anything in particular that needs to be changed for this to display correctly. Also if anyone can explain these fields within the navdata database that would be great. The airway type show H and L, im presuming High and Low airways, but I've also seen B and am unsure what that is. And also the type column, what is its role in the database ? One more thing, why doesn't the route display on the live map ? I just get straight lines from departure to destination. Cheers Tylor Quote
Administrators Nabeel Posted October 12, 2011 Administrators Report Posted October 12, 2011 LIve map... I believe it depends if the route was entered in acars/they're flying a scheduled route that does have a route with it. Have you verified those waypoints exist within the navdata? 1 Quote
Tylor Eddy Posted October 12, 2011 Author Report Posted October 12, 2011 LIve map... I believe it depends if the route was entered in acars/they're flying a scheduled route that does have a route with it. Have you verified those waypoints exist within the navdata? G'day Nabeel, A Majority of my pilots are using kacars_free, is it the reason that the route won't show ? All the schedules have a route added to them, and the route displays when you bring the flightplan up in kacars. Also i have checked and can confirm that all the waypoints along the airway are within the database, and are tied to the correct airway. Tylor Quote
Guest lorathon Posted October 13, 2011 Report Posted October 13, 2011 1. Check the acarsdata table to see if the route column is being populated. 2. You may have to play with the acarsmap template. I think I remember modifying it to get it to work correctly. It will work. If you look http://www.phoenixva.org/index.php/acars I have it working. I just dont remember what I had to do. There should be a loop for the route_details in there somewhere and that is where the navpoint data comes from. Quote
Tylor Eddy Posted October 13, 2011 Author Report Posted October 13, 2011 1. Check the acarsdata table to see if the route column is being populated. 2. You may have to play with the acarsmap template. I think I remember modifying it to get it to work correctly. It will work. If you look http://www.phoenixva.org/index.php/acars I have it working. I just dont remember what I had to do. There should be a loop for the route_details in there somewhere and that is where the navpoint data comes from. G'day Jeffery, Just took a look at the database and the route column was being populated correctly. I took a look at the source code for your acars map, and you have images set for the points, could that be the problem or is just the code displaying what is actually there ? I have this for my navaids: <script type="text/html" id="navpoint_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br /> <strong>Type: </strong> <?php /* Show the type of point */ ?> <% if(nav.type == 2) { %> NDB <% } %> <% if(nav.type == 3) { %> VOR <% } %> <% if(nav.type == 4) { %> DME <% } %> <% if(nav.type == 5) { %> FIX <% } %> <% if(nav.type == 6) { %> TRACK <% } %> <br /> <?php /* Only show frequency if it's not a 0*/ ?> <% if(nav.freq != 0) { %> <strong>Frequency: </strong><%=nav.freq%> <% } %> </span> <p> </p> </script> Quote
Guest lorathon Posted October 13, 2011 Report Posted October 13, 2011 it is not the template. It is the js. open lib/js/acarsmap.js Find the following code and comment out the if bracket. so it looks like the code below. It should work then // if(this.flightdetails.route_details.length > 0) { $.each(this.flightdetails.route_details, function(i, nav) { var loc = new google.maps.LatLng(nav.lat, nav.lng); if(nav.type == 3) icon = "icon_vor.png"; else icon = "icon_fix.png"; var navpoint_info = tmpl("navpoint_bubble", {nav: nav}); routeMarkers[routeMarkers.length] = new google.maps.Marker({ position: loc, map: map, icon: url + "/lib/images/"+icon, title: nav.title, zIndex: 100, infowindow_content: navpoint_info }); google.maps.event.addListener(routeMarkers[routeMarkers.length - 1], 'click', function() { info_window = new google.maps.InfoWindow({ content: this.infowindow_content, position: this.position }); info_window.open(map, this); }); path[path.length] = loc; focus_bounds.extend(loc); }); //} Quote
Tylor Eddy Posted October 14, 2011 Author Report Posted October 14, 2011 it is not the template. It is the js. open lib/js/acarsmap.js Find the following code and comment out the if bracket. so it looks like the code below. It should work then // if(this.flightdetails.route_details.length > 0) { $.each(this.flightdetails.route_details, function(i, nav) { var loc = new google.maps.LatLng(nav.lat, nav.lng); if(nav.type == 3) icon = "icon_vor.png"; else icon = "icon_fix.png"; var navpoint_info = tmpl("navpoint_bubble", {nav: nav}); routeMarkers[routeMarkers.length] = new google.maps.Marker({ position: loc, map: map, icon: url + "/lib/images/"+icon, title: nav.title, zIndex: 100, infowindow_content: navpoint_info }); google.maps.event.addListener(routeMarkers[routeMarkers.length - 1], 'click', function() { info_window = new google.maps.InfoWindow({ content: this.infowindow_content, position: this.position }); info_window.open(map, this); }); path[path.length] = loc; focus_bounds.extend(loc); }); //} G'day Jeffery, Just tried your suggestion, but for some reason it still shows a singular line from the departure to the destination. Tylor Quote
Guest lorathon Posted October 14, 2011 Report Posted October 14, 2011 Make sure that the route_details column is being populated. This is where the route is parsed into the actual nav point. Quote
Tylor Eddy Posted October 14, 2011 Author Report Posted October 14, 2011 Make sure that the route_details column is being populated. This is where the route is parsed into the actual nav point. G'day Jeffrey, Just took a look at the database, the route column is populated, but the route_details column isn't. Tylor Quote
Guest lorathon Posted October 14, 2011 Report Posted October 14, 2011 Look here and you can see where my fix was installed into the beta version. Give this a try. https://github.com/nshahzad/phpVMS/blob/master/core/modules/ACARS/ACARS.php Quote
Tylor Eddy Posted October 15, 2011 Author Report Posted October 15, 2011 Look here and you can see where my fix was installed into the beta version. Give this a try. https://github.com/nshahzad/phpVMS/blob/master/core/modules/ACARS/ACARS.php Thanks Jeffrey Works great now, thanks for the support Actually i have 1 more question, how come when i click on the bubble's that come up for the aircraft and waypoints, they stay open when i click another ? Is there any easy way to close them when i click another point ? Tylor Quote
Zach Posted April 29, 2013 Report Posted April 29, 2013 G'day Jeffrey, Just took a look at the database, the route column is populated, but the route_details column isn't. Tylor Im also not getting a route_details list populated in my database. What was the fix for this? I have checked the ACARS.php and commented out the acars.js . Is there anything else i need to do to get a populated route_details column? Cheers! Quote
Angel Air Posted December 24, 2013 Report Posted December 24, 2013 Hi all, I was up all last night trying different code to get this to work. I have downloaded and installed FS-products navdata.sql and I have used the code here to try and get it to display but no luck. Any help would be great. I have just had a look at the schedules DB and neither the route column or the route_details column are being populated any ideas? that is on my test server just looked on live server and route is populated and this is what is shown in route_details column a:0:{} is anyone else the same? Thanks in advance Quote
Angel Air Posted December 24, 2013 Report Posted December 24, 2013 That means it's an array. any idea how to fix it because i am way out of my depth Quote
freshJet Posted December 24, 2013 Report Posted December 24, 2013 Sorry I was talking about the wrong thing... Did you try Jeffrey's solution? Quote
Angel Air Posted December 24, 2013 Report Posted December 24, 2013 Sorry I was talking about the wrong thing... Did you try Jeffrey's solution? yes i copied the ACARS.php file from the github and am using it as we speak. and i commented out the line in the js file Quote
Angel Air Posted December 26, 2013 Report Posted December 26, 2013 anyone that can help? please Quote
Curshad Posted November 5, 2014 Report Posted November 5, 2014 G'day, i myself Just took a look at the database, the route column is populated, but the route_details column isn't. How can i populate them? I believe this is why i cant see my FIX NDB VOR or nothing on my acars map. The link Jeff provided did not work for me. I assume that must have been updated. Tylor if you can tell me how that'll be great! 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.