Revisiting the worldmap node again for my aircraft tracking website and having some issues that have been around for a while but are now really a bit of a show-stopper.
-
ttl. I have tried passing in a string "1800", a number
1800
and not passing anything in and setting the main node to be 1800 and also tried changing it on the three bar menu.
None of the methods will keep the aircraft on the map for longer than some random time between about 5 seconds and 1-2 minutes tops.
I have removed the worldmap_in node as I found it could change things a bit, so removing it has helped with a lot of other stability of plotted aircraft.
Here is the code I am using to plot the aircraft:
msg.payload = {
layer:"Mil ACARS",
name:msg.payload.ICAO,
lat:msg.lat,
lon:msg.lon,
// ttl: 3600,
// ttl: "1800",
icon:"plane",
iconColor:"blue",
label:msg.payload.ICAO+" : "+msg.call+" : "+msg.payload.Type+ " : M1BPOS",
Callsign: msg.call,
ADSBEx:'<a href="'+msg.payload.ADSBEx+'" target="_blank">ADSBEx</a>'
}
Do note that I have three layers, Mil ADSB, Mil ADSC and Mil ACARS, I have a suspicion that the layers are interacting with each other. The ADSB and ADSC get updated every 2 minutes the ACARS aircraft are only plotted when a message comes in. (minutes to hours).
-
Detail on click. I have a nice popup when the aircraft is clicked on:
But these two (randomly each time an aircraft shows up) are the only two that show the detail in all the aircraft on the map. None of the others will show their details, but have the exact same msg.payload code.
In this example, again, only the top one shows up.
The green and blue are on different layers, so my point is that it does not seem to be layer specific as to what aircraft I can click on and see the detail or not.
The thing of note is that I only need the 'on click' to work because I cant not get the URL to work on the label to the right of the aircraft. I can put the URL in the label, it shows as a blue link, but nothing happens when you click it. So if that could work, I would not need to fix the random non-popup details box (but it sure is nice).
I'm running Node version 18.15.0, Node-RED version 3.0.2 and worldmap version 2.37.2
Thanks for taking a looking and offering any suggestions.