I have already programed flightaware map and it is showing into my website but flight line is not showing. In other hand the destinations is showing in the map. Even when the flight status in the air the line is not showing.
Without being able to see when you made the query, we cannot diagnose if the output is correct or not. I would try another query and see if it is providing the expected result.
$params = {“faFlightID”:“KAC172-1515738354-airline-0191”,“mapHeight”:“500”,“mapWidth”:“500”,“layer_on”:[“country boundaries”,“US state boundaries”,“water”,“US major roads”,“airports”,“asia country boundaries”,“US Cities”,“european country boundaries”,“ajor airports”,“track”,“flights”],“layer_off”:[“radar”],“show_data_blocks”:true,“show_airports”:true,“airports_expand_view”:true,“latlon_box”:[52.026421,6.543125,27.226567,49.968928]}
What faFlightID are you looking at in that screenshot? That flight (KNE24) does not operate today (2018-01-17), https://flightaware.com/live/flight/KNE24, so I don’t think it would have been enroute at the time of your screenshot. Be sure that you are determining that the flight is enroute by checking that (actualdeparturetime != 0 && actualarrivaltime == 0).
I notice in your previously supplied sample code that you are specifying “latlon_box”. Is it possible that your code has miscomputed the rectangle to be an area of the ocean where the plane is not visible?
Also, you probably intend to say “on the way” rather than “in the way” for your status text when it is enroute.
There is also a typo in your layer_on list of “ajor airports”
For maps not updating:
Can you please examine how the faFlightID is being selected on your side? When using FlightXML3 FlightInfoStatus it looks like howMany: 1 is being provided. Often the first result is a scheduled flight for a few days in the future and not the current day’s flight. Please set howMany between 10 and 15 and verify that the correct day’s flight is being used to get accurate maps.
For the “blank” map:
Can you please re-check how you are computing values for the latlon_box? In the case above (KNE24) it looks like latlon_box: [2, -2, -2, 2] was provided. This area is all ocean/water and would appear correctly empty.