I want to have a red marker if an aircraft squawk 7700, 7600 or 7500. To test if my code works I used this (there are a few other marker codes in that file so don't worry about the start and the ending of it :
If I use return aircraft.Squawk.val === '1000' it doesn't work. It won't even show any other planes on my map. Does anyone have a solution for squawk based markers?
JavaScript is case sensitive. You used the field name aircraft.Squawk, which doesn't exist. I think if you check the console tab on the F12 screen in the browser you'll probably see an error saying as much?
The actual name is squawk with a lower-case S, e.g.