I want to do 2 things via a Script and it does not work :
1) I am trying to enable te checkbox "Hide aircraft not on map" by default in the configuration menu.
2) I also want to hide this checkbox in the configuration menu, so this checkbox can not be unchecked.
The following script is running, but the checkbox is still visible in the configuration menu and the Aircraft not on the map are still shown in the list. The checkbox "Hide aircraft not on map" is not checked by the script.
What am I doing wrong? Or what's wrong in my script?
Code: Select all
withVRS.globalOptions.aircraftListHideAircraftNotOnMap = true;
The script displays the alert box with the text 'It worked!'alert('It worked!');
So it looks like the global option "aircraftListHideAircraftNotOnMap" does not what it supposed to do.
I hope someone can help.
PS: I have the latest preview version installed.