I have been doing a lot of playing around with building my own JSON DB to work with custom graphics and figured out I can change the ICAO Aircraft Designator field to say pretty much whatever I want and then set whatever graphics I want to map to those descriptions.
At the moment the info pop up reads the aircraft type from the DB entry:
https://dl.dropboxusercontent.com/u/50785283/StandardInfo.JPG
Now if I change the aircraft type as below in the CSV:
C8225F,ZK-KWI,CJ6
C82260,ZK-SDL,CAML
C82261,ZK-LPK,PNR3
C82268,ZK-OXJ,A320-232
C82269,ZK-OXK,A320
C8226A,ZK-PAW,C172
Then add the extra type to the markers.js:
*var TypeDesignatorIcons = {
// Airbus
‘A318’: _a318, ‘A319’: _a319, ‘A320’: _a320, ‘A321’: _a320, // stretched a320
‘A332’: _a332, ‘A333’: _a333,
‘A342’: _a343, ‘A343’: _a343, ‘A345’: _a345, ‘A346’: _a346,
‘A358’: _a358, ‘A359’: _a359, ‘A35K’: _a35k,
‘A388’: _a388,
** //Petes Special Test
‘A320-214’: _a320, ‘A320-232’: _a320,**
*
Then I get the following displayed:
https://dl.dropboxusercontent.com/u/50785283/NewInfo.JPG
The source data I have would make this a fairly easy change to make, it will just vastly increase the number of TypeDesignators I would need in the markers.js
This got me thinking, how hard would it be to add a descriptor field to the JSON DB and then have an option to display this instead of the standard type designator?
I haven’t tried this yet but I strongly suspect putting a space in the descrptor as it is could break things…