skylineVirtual Posted March 31, 2015 Report Share Posted March 31, 2015 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 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). 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 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.