amiro Posted April 7, 2012 Report Share Posted April 7, 2012 I got the web page setup and I'm using FSFK I place a bid on a route get all the info setup FSFK then when I connect my acars it shows up on the live map but keeps adding lines under the map instead of having just the one line and second problem is, it shows my flight plan #, destination, Arrival but the distance is wrong and when you click on the bubble on the map it shows 0 for flight number. Any idea what is wrong with that? Thanks live_acars.doc Quote Link to comment Share on other sites More sharing options...
amiro Posted April 8, 2012 Author Report Share Posted April 8, 2012 would this problem be in acarsmap.js? // They clicked the map google.maps.event.addListener(map, 'click', function() { //clearPreviousMarkers(); }); liveRefresh(); if(options.autorefresh == true) { setInterval(function () { liveRefresh(); }, options.refreshTime); } function liveRefresh() { $.ajax({ type: "GET", url: url + "/action.php/acars/data", dataType: "json", cache: false, success: function(data) { populateMap(data); } }); }; function populateMap(data) { clearMap(); $("#pilotlist").html(""); if (data.length == 0) { return false; } var lat, lng; var details, row, pilotlink; var bounds = new google.maps.LatLngBounds(); for (var i = 0; i < data.length; i++) { Quote Link to comment Share on other sites More sharing options...
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.