Jump to content

[Solved] ACARS Map auto reload


skylineVirtual

Recommended Posts

Hi guys,

I have a question on the live map today. We have added a way to display the true flight path of a pilot on our live map.

here http://web.skyline-va.de/live

e328326d53.png

Once you click on a plane in inflight, everything is as it should be for a few moments and you can see the true flight path (green) of the pilot as well as a line plotted from the current position to the arrival airport (white) and another one from departure to arrival (red, the default one).

8b6dbe22f4.png

Now as soon as you wait for one or two minutes the data get's updated a few times and only the plane moves on, leaving you with an old flightpath and a new position of the plane icon. As this doesn't look very nice I would love to have the flightpath update with the plane.

The code required for this feature is all inside the

populateMap(data) function 

inside this tag:

google.maps.event.addListener(flightMarkers[flightMarkers.length - 1], 'click', function()

The solution would probably be to somehow simulate a click on the selected plane when the data refreshes. Does someone know how to do this? Or is there another way of achieving this result?

Thanks in advance!

Lauritz

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