Jump to content

Live Map Problem


amiro

Recommended Posts

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

Link to comment
Share on other sites

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++)

{

Link to comment
Share on other sites

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...