I am using the custom script to display a specific aircraft marker based on the Hex code (ICAO). I have this working for one Hex code, however I can't work out the syntax to allow other Hex codes to be added. Here's the script :
If I want an aircraft with the Hex '4250F8' to also display the custom marker how do I achieve this ?<script type="text/javascript">
if(VRS && VRS.globalDispatch && VRS.serverConfig) {
VRS.globalDispatch.hook(VRS.globalEvent.bootstrapCreated, function(bootStrap) {
if(VRS.globalOptions && VRS.globalOptions.aircraftMarkers) {
VRS.globalOptions.aircraftMarkers.unshift(
//-----------------------------------------------------------------------------------------------------------------
new VRS.AircraftMarker({
normalFileName: 'qcop.png',
selectedFileName: 'qcops.png',
size: { width: 40, height: 40 },
matches: function (aircraft) { return aircraft.icao.val === '4250F7'; }
//-----------------------------------------------------------------------------------------------------------------
})
)};
});
}
</script>
I have tried also creating a separate custom script, but this doesn't seem to work, despite everything except the Hex in the script being identical .