Some custom SVG plane icons...

Cleaned up the Generic icon, after I went back to it from my triangle:
https://dl.dropboxusercontent.com/u/50785283/NewGeneric.png

var _generic_plane_svg = “m 1.6,44.3 0,-3.9 0.2,-0.9 0.4,-0.5 0.6,-0.6 24.7,-15.5 0,-13.7 0.1,-1.6 0.4,-1.8 0.6,-1.7 0.6,-1.2 0.9,-1.2 0.9,-0.6 1,-0.1 1,0.1 0.9,0.6 0.9,1.2 0.6,1.2 0.6,1.7 0.4,1.8 0.1,1.6 0,13.7 24.7,15.5 0.6,0.6 0.4,0.5 0.2,0.9 0,3.9 -0.3,1.1 -0.7,0.5 -1,0.1 -19.7,-6.6 -4.2,0 0,9 -0.1,2 -0.2,1.7 -0.4,1.5 -0.4,0.8 6.6,3.1 0.5,0.5 0.3,0.6 0.2,1.1 0,2.2 -0.4,0.6 -0.6,0.4 -0.6,0.1 -18.8,0 -0.6,-0.1 -0.6,-0.4 -0.4,-0.6 0,-2.2 0.2,-1.1 0.3,-0.6 0.5,-0.5 6.6,-3.1 -0.4,-0.8 -0.4,-1.5 -0.2,-1.7 -0.1,-2 0,-9 -4.2,0 -19.9,6.7 -0.8,-0.2 -0.7,-0.5 z”;

Old one had quite complex code and wasn’t even symmetrical!

Updated markers.js in DropBox too.

Updated markers.js, no new graphics, just cleaning up and adding Type Designators.

https://dl.dropboxusercontent.com/u/50785283/markers.js

Hi FlyingPeteNZ,
I have an issue with running the python script to create the jsons.

I get this output from my .csv I named “Airframe-list1.csv”

I am working in a directory i created in /home/pi

I put a copy of the csv-to-json.py file and my new csv file into this directory then ran the script

Reading from Airframe-list1.csv
Traceback (most recent call last):
File “csv-to-json.py”, line 111, in
readcsv(filename, infile, blocks)
File “csv-to-json.py”, line 36, in readcsv
blocks[bkey].setdefault(dkey, {}).update(entry)
KeyError: ‘O’

Any ideas anyone ?

Thanks

You have an ICAO address that starts with the letter “O”.
“O” is not a valid hex digit.

Hey Thanks obj,
I found 6 instances of O instead of 0.

Nearly there,

got a load of jsons now in my db directory but an error at the end

Read 147084 aircraft from Airframe-list11.csv
Writing blocks: 0 1 2 3 4 5 6 7 8 9 A B C D E F 00 06 0A 0D 14 15 30 34 38 39 3C 3D 3E 3F 4. 40 42 43 44 45 46 47 48 49 4A 4B 4C 50 71 73 75 76 78 7C 80 88 89 8A A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE C0 E4 140 141 145 146 382 383 384 385 390 391 392 393 394 395 396 398 3C6 3D0 3D1 3D2 3D3 3D4 3DD 3E5 3E6 3E7 3EC 3EE 3EF 3F0 3F2 3FC 3FD 3FE 3FFTraceback (most recent call last):
File “csv-to-json.py”, line 113, in
writedb(blocks, sys.argv-1], 1000, False)
File “csv-to-json.py”, line 57, in writedb
new_bkey = bkey + dkey[0]
IndexError: string index out of range

Can you send a link to the file so I can have a look?

The script is not tolerant of badly formatted data. GIGO. You have an ICAO address that is not a 6-digit hex value.

I had a look at it, some of the ICAOs are badly formatted, missing leading zeros of codes with only numerals and E’s in them extended to large numbers, works fine when those are cleaned out.

More planes!

Added a few more Cessnas and a range of Tecnam (see a lot around here), a Diamond twin (local flying school has these) and a glider for good measure, (yeah I know some of these look almost the same, but I am a bit OCD OK!) enjoy!

Don’t forget to use the right scale for your setup.

// Rolladen-Schneider
// LS4 Glider - Standard Scale 0.25 Meters/point, PiAware Default Scale 0.13, 3in4 Non-linear Scale 0.40

https://dl.dropboxusercontent.com/u/50785283/Rolladen-SchneiderLS4.png
var _glid = {
key: “glid”,
scale: 0.25,
size: [64, 64],
anchor: [32, 32], //Tail position 45
path: “m 32,18.2 0.2,0.1 0.2,0.3 0.2,0.5 0.3,1.2 0.2,1.7 0.1,1.8 0,2 3.3,0 25.1,0.5 0.3,0.1 0.2,0.2 0.1,0.3 0,0.9 -13.5,1.1 -15.7,0.7 -0.7,13.3 4.4,0.5 0.2,0.1 0.1,0.1 0.1,0.2 0,1 -0.1,0.1 -4.6,0.1 -0.2,-0.4 0,0.7 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 0,-0.7 -0.2,0.4 -4.6,-0.1 -0.1,-0.1 0,-1 0.1,-0.2 0.1,-0.1 0.2,-0.1 4.4,-0.5 -0.7,-13.3 -15.7,-0.7 -13.5,-1.1 0.1,-1.2 0.2,-0.2 0.3,-0.1 25.1,-0.5 3.3,0 0,-2 0.1,-1.8 0.2,-1.7 0.3,-1.2 0.2,-0.5 0.2,-0.3 z”};

// Cessna
// 152 with prop - Standard Scale 0.17 Meters/point, , PiAware Default Scale 0.08, 3in4 Non-linear Scale 0.35
https://dl.dropboxusercontent.com/u/50785283/C152.png
var _c152 = {
key: “c152”,
scale: 0.17,
size: [64, 64],
anchor: [32, 32], //Tail position 53
path: “m 32,10.2 0.4,0.7 0.2,0.6 4.7,0 0,0.2 -4.6,0.1 0.1,0.4 0.7,0 0.6,0.2 0.3,0.4 0.2,0.7 0.3,3.5 0.1,3 11.3,0 15.6,0.7 0.6,0.4 0.3,0.8 0,5.5 -17.5,2.5 -10.6,0 -1.8,14.1 8,1.2 0.4,0.5 0.2,1.1 0,1.2 -0.2,0.9 -0.4,0.7 -7.3,1.1 -1.3,-2.5 -0.1,5.6 -0.2,0.1 -0.2,-0.1 -0.1,-5.6 -1.3,2.5 -7.3,-1.1 -0.4,-0.7 -0.2,-0.9 0,-1.2 0.2,-1.1 0.4,-0.4 8,-1.3 -1.8,-14.1 -10.6,0 -17.5,-2.5 0,-5.5 0.3,-0.8 0.6,-0.3 15.6,-0.8 11.3,0 0.1,-3 0.3,-3.5 0.2,-0.7 0.3,-0.4 0.6,-0.2 0.7,0 0.1,-0.4 -4.7,-0.1 0,-0.2 4.8,0 0.2,-0.6 z”};

// 172 with prop - Standard Scale 0.18 Meters/point, , PiAware Default Scale 0.09, 3in4 Non-linear Scale 0.35
https://dl.dropboxusercontent.com/u/50785283/C172.png
var _c172 = {
key: “c172”,
scale: 0.18,
size: [64, 64],
anchor: [32, 32], //Tail position 55
path: “m 32,10.1 0.4,0.8 0.3,1 4.7,0 0,0.2 -4.6,0.1 0.1,0.6 0.6,0 0.6,0.2 0.3,0.4 0.2,0.7 0.4,4.3 0.1,3 11.2,0 15.8,0.8 0.6,0.4 0.3,0.8 0,5 -16.7,2.1 -11.3,0 -2,16.2 8.2,1.6 0.5,0.3 0.1,0.5 0,2.9 -0.2,0.4 -0.4,0.2 -7.9,1.1 -1,-2.5 -0.1,5 -0.2,0.1 -0.2,-0.1 -0.1,-5 -1,2.5 -7.9,-1.1 -0.4,-0.2 -0.2,-0.4 0,-2.9 0.1,-0.5 0.5,-0.3 8.2,-1.6 -2,-16.2 -11.3,0 -16.7,-2.1 0,-5 0.3,-0.8 0.6,-0.4 15.8,-0.8 11.2,0 0.1,-3 0.4,-4.3 0.2,-0.7 0.3,-0.4 0.6,-0.2 0.6,0 0.1,-0.6 -4.7,-0.1 0,-0.2 4.8,0 0.3,-1 z”};

// 182 with prop - Standard Scale 0.18 Meters/point, , PiAware Default Scale 0.09, 3in4 Non-linear Scale 0.36
https://dl.dropboxusercontent.com/u/50785283/C182.png
var _c182 = {
key: “c182”,
scale: 0.18,
size: [64, 64],
anchor: [32, 32], //Tail position 55
path: “m 32,8.4 0.4,0.7 0.2,0.8 5.2,0 0,0.2 -5.1,0.1 0.1,0.5 0.7,0 0.6,0.2 0.3,0.4 0.2,0.7 0.5,3.9 0.1,3.4 11.1,0 15.6,0.7 0.6,0.4 0.3,0.8 0,5.1 -16.8,2.3 -10.8,0 -2.1,16.1 8.3,1.1 0.5,0.4 0.1,1.5 0,1.2 -0.1,1.3 -0.5,0.3 -8.1,1.4 -0.8,-2.1 -0.2,1.7 -0.1,3.2 -0.2,0.9 -0.2,-0.9 -0.1,-3.2 -0.2,-1.7 -0.8,2.1 -8.1,-1.4 -0.5,-0.3 -0.1,-1.3 0,-1.2 0.1,-1.5 0.5,-0.4 8.3,-1.1 -2.1,-16.1 -10.8,0 -16.8,-2.3 0,-5.1 0.3,-0.8 0.6,-0.3 15.6,-0.8 11.1,0 0.1,-3.4 0.5,-3.9 0.2,-0.7 0.3,-0.4 0.6,-0.2 0.7,0 0.1,-0.5 -5.2,-0.1 0,-0.2 5.3,0 0.2,-0.8 z”};

// Tecnam
// P92 Echo with prop - Standard Scale 0.14 Meters/point, PiAware Default Scale 0.07, 3in4 Non-linear Scale 0.33

https://dl.dropboxusercontent.com/u/50785283/TecnamP92Echo.png
var _echo = {
key: “echo”,
scale: 0.14,
size: [64, 64],
anchor: [32, 32], //Tail position 54
path: “m 32,11.4 0.3,-0.9 0.4,-0.2 0.4,0.2 0.3,0.9 5.3,0.1 -5.3,0 0.1,0.6 0.5,0 0.6,0.2 0.3,0.4 0.2,0.7 0.9,8.8 3.8,-0.9 22.1,0 0.5,0.2 0.3,0.4 0.5,2 0.5,3.6 0.1,3 -0.2,0.2 -0.9,0.2 -1.2,0.1 -25.9,0 -2.2,17.8 9.1,0 0.1,0.1 0,4.5 -0.1,0.1 -9.7,0 -0.1,0.2 -0.1,-0.2 -9.7,0 -0.1,-0.1 0,-4.5 0.1,-0.1 9.1,0 -2.2,-17.8 -25.9,0 -1.2,-0.1 -0.9,-0.2 -0.2,-0.2 0.1,-3 0.5,-3.6 0.5,-2 0.3,-0.4 0.5,-0.2 22.1,0 3.8,0.9 0.9,-8.8 0.2,-0.7 0.3,-0.4 0.6,-0.2 0.5,0 0.1,-0.6 -5.3,0 5.3,-0.1 z”};

// P96 Golf with prop - Standard Scale 0.14 Meters/point, PiAware Default Scale 0.07, 3in4 Non-linear Scale 0.33
https://dl.dropboxusercontent.com/u/50785283/TecnamP96Golf.png
var _golf = {
key: “golf”,
scale: 0.14,
size: [64, 64],
anchor: [32, 32], //Tail position 55
path: “m 32,8.9 0.3,0.2 0.2,0.5 0.3,1.1 5.3,0.1 -5.3,0 0,0.4 0.4,0 0.6,0.3 0.3,0.4 0.2,0.7 1.1,6.2 3.7,2.3 22.7,0 0.5,0.2 0.3,0.4 0.4,2 0.3,7.3 -0.1,0.1 -26.1,0 -0.8,0.2 -0.7,0.4 -0.5,0.6 -0.3,0.6 -2.1,17.5 9.5,0 0.1,0.1 0,4.6 -0.1,0.1 -20.3,0 -0.1,-0.1 0,-4.6 0.1,-0.1 9.4,0 -2.1,-17.5 -0.3,-0.6 -0.5,-0.6 -0.7,-0.4 -0.8,-0.2 -26.1,0 -0.1,-0.1 0.3,-7.3 0.4,-2 0.3,-0.4 0.5,-0.2 22.7,0 3.7,-2.3 1.1,-6.2 0.2,-0.7 0.3,-0.4 0.6,-0.3 0.4,0 0,-0.4 -5.3,0 5.3,-0.1 0.3,-1.1 0.2,-0.5 z”};

// P2002 Sierra with prop - Standard Scale 0.14 Meters/point, PiAware Default Scale 0.07, 3in4 Non-linear Scale 0.33
https://dl.dropboxusercontent.com/u/50785283/TecnamP2002Sierra.png
var _sira = {
key: “sira”,
scale: 0.14,
size: [64, 64],
anchor: [32, 32], //Tail position 55
path: “m 32,8.4 0.3,0.4 0.4,1 0.1,0.6 5.4,0 -5.4,0.1 0.1,0.2 0.2,0.1 0.6,0.4 0.3,0.4 0.3,0.7 0.5,2.4 0.6,3.8 2.6,1.7 23.7,1.4 0.5,0.2 0.3,0.3 0.2,0.7 0.2,5.8 -0.1,0.1 -26.5,2.8 -0.6,0.3 -0.6,0.7 -1.1,8.1 -1.3,10 9.3,0 0.2,0.1 0.2,0.2 0.1,0.3 0,1.6 -0.1,1.4 -0.2,1.2 -0.2,0.2 -20,0 -0.2,-0.2 -0.2,-1.2 -0.1,-1.4 0,-1.6 0.1,-0.3 0.2,-0.2 0.2,-0.1 9.3,0 -1.3,-10 -1.1,-8.1 -0.6,-0.7 -0.6,-0.3 -26.5,-2.8 -0.1,-0.1 0.2,-5.8 0.2,-0.7 0.3,-0.3 0.5,-0.2 23.7,-1.4 2.6,-1.7 0.6,-3.8 0.5,-2.4 0.3,-0.7 0.3,-0.4 0.6,-0.4 0.2,-0.1 0.1,-0.2 -5.4,-0.1 5.4,0 0.1,-0.6 0.4,-1 z”};

// P2004 Bravo with prop - Standard Scale 0.14 Meters/point, PiAware Default Scale 0.07, 3in4 Non-linear Scale 0.33
https://dl.dropboxusercontent.com/u/50785283/TecnamP2004Bravo.png
var _brav = {
key: “brav”,
scale: 0.14,
size: [64, 64],
anchor: [32, 32], //Tail position 56
path: “m 32,7.7 0.3,0.4 0.4,1 0.1,0.6 5.4,0 -5.4,0.1 0.1,0.3 0.2,0 0.6,0.4 0.3,0.4 0.3,0.7 0.7,3.1 0.7,6 4.3,-0.5 21.5,1.3 0.5,0.2 0.3,0.3 0.2,0.7 0.2,6 -0.1,0.1 -27.3,2.9 -1.3,8.9 -1.3,10.5 9.3,0 0.2,0.1 0.2,0.2 0.1,0.3 0,1.1 -0.1,1.4 -0.2,1.2 -0.2,0.2 -20,0 -0.2,-0.2 -0.2,-1.2 -0.1,-1.4 0,-1.1 0.1,-0.3 0.2,-0.2 0.2,-0.1 9.3,0 -1.3,-10.5 -1.3,-8.9 -27.3,-2.9 -0.1,-0.1 0.2,-6 0.2,-0.7 0.3,-0.3 0.5,-0.2 21.5,-1.3 4.3,0.5 0.7,-6 0.7,-3.1 0.3,-0.7 0.3,-0.4 0.6,-0.4 0.2,0 0.1,-0.3 -5.4,-0.1 5.4,0 0.1,-0.6 0.4,-1 z”};

// P2008 with prop - Standard Scale 0.15 Meters/point, PiAware Default Scale 0.08, 3in4 Non-linear Scale 0.34
https://dl.dropboxusercontent.com/u/50785283/TecnamP2008.png
var _p208 = {
key: “p208”,
scale: 0.15,
size: [64, 64],
anchor: [32, 32], //Tail position 55
path: “m 32,8.2 0.4,0.4 0.3,1.1 5.3,0.1 -5.3,0 0.1,0.9 0.3,0.1 0.6,0.2 0.3,0.4 0.2,0.7 0.7,2.6 0.8,4.6 0.4,3.2 3,-0.7 21.9,0 0.7,0.2 0.6,0.6 0.3,0.8 0.3,5.9 -0.1,0.1 -11.9,2.4 -15.2,0 -1.2,8.8 -1.5,8.9 8.4,0 0.2,0.1 0.2,0.2 0.1,0.3 0,1.4 -0.1,1.4 -0.2,1.2 -0.2,0.2 -9.1,0 -0.3,1.6 -0.3,-1.6 -9.1,0 -0.2,-0.2 -0.2,-1.2 -0.1,-1.4 0,-1.4 0.1,-0.3 0.2,-0.2 0.2,-0.1 8.4,0 -1.5,-8.9 -1.2,-8.8 -15.2,0 -11.9,-2.4 -0.1,-0.1 0.3,-5.9 0.3,-0.8 0.6,-0.6 0.5,-0.2 22.1,0 3,0.7 0.4,-3.2 0.8,-4.6 0.7,-2.6 0.2,-0.7 0.3,-0.4 0.6,-0.2 0.3,-0.1 0.1,-0.9 -5.3,0 5.3,-0.1 0.3,-1.1 z”};

// Astore with prop - Standard Scale 0.14 Meters/point, PiAware Default Scale 0.07, 3in4 Non-linear Scale 0.33
https://dl.dropboxusercontent.com/u/50785283/TecnamAstore.png
var _asto = {
key: “asto”,
scale: 0.14,
size: [64, 64],
anchor: [32, 32], //Tail position 57
path: “m 32,6.5 0.5,0.9 0.4,1.4 5.3,0.1 -5.3,0.1 0.1,0.5 0.3,0.1 0.6,0.4 0.4,0.4 0.4,0.8 1.1,7.1 0.1,0.8 3.7,1.7 22.2,1.3 0.5,0.1 0.3,0.3 0.3,0.7 0.2,6 -0.1,0.1 -26.5,2.8 -0.3,0.1 -0.4,0.3 -0.3,0.5 -0.1,0.3 -0.9,6.3 -1.7,10.3 9.5,0 0.2,0.1 0.2,0.2 -0.1,4.6 -0.2,0.2 -8.8,0 -1.1,-2.4 -0.2,2.5 -0.3,2.5 -0.3,-2.5 -0.2,-2.5 -1.1,2.4 -8.8,0 -0.2,-0.2 -0.1,-4.6 0.2,-0.2 0.2,-0.1 9.5,0 -1.7,-10.3 -0.9,-6.3 -0.1,-0.3 -0.3,-0.5 -0.4,-0.3 -0.3,-0.1 -26.5,-2.8 -0.1,-0.1 0.2,-6 0.3,-0.7 0.3,-0.3 0.5,-0.1 22.2,-1.3 3.7,-1.7 0,-0.8 1.2,-7.1 0.4,-0.8 0.4,-0.4 0.6,-0.4 0.3,-0.1 0.1,-0.5 -5.3,-0.1 5.3,-0.1 0.4,-1.4 z”};

// Diamond
// DA42 with props - Standard Scale 0.21 Meters/point, PiAware Default Scale 0.11, 3in4 Non-linear Scale 0.38

https://dl.dropboxusercontent.com/u/50785283/DiamondDA42.png
var _da42 = {
key: “da42”,
scale: 0.21,
size: [64, 64],
anchor: [32, 32], //Tail position 52
path: “m 32,11.9 0.3,0.1 0.4,0.5 0.4,1.1 0.5,1.7 0.5,2.7 0.4,3 0.1,2.3 3.5,0.7 -0.1,-0.5 0,-0.5 0.2,-0.3 0,-0.7 0.3,-1.1 0.4,-0.6 0.5,-0.3 0,-0.3 -3.7,0 0,-0.1 3.7,0 0.2,-0.6 0.2,-0.4 0.3,-0.3 0.3,0.3 0.2,0.4 0.2,0.6 3.6,0 0,0.1 -3.6,0 0,0.3 0.5,0.3 0.4,0.6 0.3,1.1 0,0.7 -0.1,1 -0.2,1.1 0.7,0.1 9.9,0.5 9.9,0.3 0.3,0.1 0.2,0.3 0.1,0.3 0,1.6 0.1,0 0,0.5 0.1,0.5 0.2,0.5 0.1,0.5 0.1,0.5 -0.1,0.5 -1,-1.1 -7.5,0.5 -13.1,0.4 -0.1,0.8 -0.4,1.1 -1.8,0 -0.4,-1.1 -0.2,-0.6 -4.1,0.3 -0.2,1.4 -0.7,2.3 -0.5,1.9 -0.5,3.3 -0.3,7.4 6.2,1.5 0.8,1.5 0,0.4 -0.1,0.4 -0.7,-0.2 -4.4,0.4 0,0.4 -2.2,0 -0.1,0.1 -0.1,-0.1 -2.2,0 0,-0.4 -4.4,-0.4 -0.7,0.2 -0.1,-0.4 0,-0.4 0.8,-1.5 6.2,-1.5 -0.3,-7.4 -0.5,-3.3 -0.5,-1.9 -0.7,-2.3 -0.2,-1.4 -3.6,-0.3 -0.2,0.6 -0.4,1.1 -1.8,0 -0.4,-1.1 -0.2,-0.8 -13.5,-0.4 -7.5,-0.5 -1,1.1 -0.1,-0.5 0.1,-0.5 0.1,-0.5 0.2,-0.5 0.1,-0.5 0,-0.5 0.1,0 0,-1.6 0.1,-0.3 0.2,-0.3 0.3,-0.1 9.9,-0.3 9.9,-0.5 0.9,-0.1 0,-0.3 -0.4,-0.5 -0.1,-0.5 0,-0.5 0.2,-0.3 0,-0.7 0.3,-1.1 0.4,-0.6 0.5,-0.3 0,-0.3 -3.7,0 0,-0.1 3.7,0 0.2,-0.6 0.2,-0.4 0.3,-0.3 0.3,0.3 0.2,0.4 0.2,0.6 3.7,0 0,0.1 -3.7,0 0,0.3 0.5,0.3 0.4,0.6 0.3,1.1 0,0.7 -0.1,1 -0.1,0.3 3.6,-0.7 0.1,-2.3 0.4,-3 0.5,-2.7 0.5,-1.7 0.4,-1.1 0.4,-0.5 z”};

Nice work.

I noticed that the left wingtip of the p28a appears chopped off.

I’d like to suggest the following:

PC12
TBM7, TBM8, TBM9
SR22, SR20
PA46, P46T
BE36, BE35, BE33
M20, M20P, M20T

Those are very common in the US.

Cool thanks for spotting that, indeed it is:
https://dl.dropboxusercontent.com/u/50785283/BadP28.png

I am going back through fixing up alignments etc and removing non-relative elements from the SVG paths, will add that one to the list to do next.

Try this code as a quick fix:
“m 32.4,4 -0.2,-0.9 -0.4,-0.8 -0.4,-0.2 -0.4,0.2 -0.4,0.8 -0.2,0.9 -0.8,0.1 -0.6,0.2 -0.3,0.4 -0.2,0.7 -1,7.9 -5.2,2 -20.5,0 -0.5,0.2 -0.3,0.4 -0.6,1.6 -0.2,1.6 0,1.8 0.2,1.4 0.3,1.6 0.3,0.9 0.6,0.7 0.6,0.3 25.7,0 2.1,17.6 -7.8,0 -0.5,0.3 -0.3,0.5 -0.2,0.9 0,2 0.2,0.8 0.3,0.4 0.5,0.2 9,0 0.2,1.2 0.2,-1.2 9,0 0.5,-0.2 0.3,-0.4 0.2,-0.8 0,-2 -0.2,-0.9 -0.3,-0.5 -0.5,-0.3 -7.8,0 2.1,-17.6 25.7,0 0.6,-0.3 0.6,-0.7 0.3,-0.9 0.3,-1.6 0.2,-1.4 0,-1.8 -0.2,-1.6 -0.6,-1.6 -0.3,-0.4 -0.5,-0.2 -20.5,0 -5.2,-2 -1,-7.9 -0.2,-0.7 -0.3,-0.4 -0.6,-0.2 z”

Will look into the others too.

Resurrecting an “old” thread here…

I just discovered all this work that FlyingPete and others have put into these icons. I’m really excited to see such detail! FlyingPete, are you still taking requests? Are you still working on updates?

Also, is there any way to change the overall scale of the icons? Like just make every icon a bit smaller or larger based on preference?

Edit: Found scaleFactor in planeObject.js. Messed around with that until I was satisfied. Even made ground a/c slightly smaller so you can see them when so close together.

I’ve just discovered this, but still need some advice on how could I use it. Anyone?

Best regards,

Andre

This is awesome, is there going to be any updates soon? Some more UK military types would be nice, like Typhoons, Tornados, Tankers etc.

Also, I’ve been using chrome incognito mode to check that newly added aircraft get the correct icon. What is required to make this a permanent change without using incognito mode? A reboot?

clear your cache on your browser

kb.iu.edu/d/ahic

Anything new. Could use the whole file again. When I upgraded to 3.5 seemed to have overwrote it. The stock one has some really Goofy stuff going on.

I have just started looking into this on 3.5 today, the SVG graphic format has changed as has the SVG drawing code. I need to update everything anyway as DropBox kindly switched off my public folder so all the previews in this thread are dead.

So far I have got my extra database fields up and going again but no custom graphics.

Watch this space…

Quick update: looks like the actual full SVG code has been dropped into PlaneObjects now if that is the case this should be easy to adapt to

Update #2: Got a graphic working, however, there appear to be two paths for every graphic now, one for fill and one for outline, having some challenges getting something with a colour fill and a black outline though… I can get a coloured plane with no fill or just a black plane.

Yes they give you the plane altitude in color now. So I could see why the new variation.

This is how things look if I use the old graphic with little in the way of modification, I can get them working but it’s a major rework of all graphics.
http://iaucklan63.net/web_images/BlackA320.JPG
http://iaucklan63.net/web_images/ColourA320.JPG

Obviously scaling is an issue too.

I have fudged an outline onto the new planes, the problem it is always a predefined width and colour, irrespective if selected or MLAT. I am OK with that for my purposes but it doesn’t really seem like a good solution.

I have also got a way of scaling again too.

It seems the approach in the 3.5 with the graphics allows for much better quality, however, it would mean a lot of work adapting the old custom graphics to work.

If you want a play, chuck this in the markers.js and reference some plane types to “a320”

    'a320': {
            svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="32px" height="32px" add_stroke_selected><defs><style>.cls-1{fill:aircraft_color_fill;}</style></defs><title>a320_live</title><g id="Layer_2" data-name="Layer 2"><g id="A320"><path class="cls-1" d="m 32,1.8 0.4,0.1 0.4,0.4 0.7,1.1 0.7,1.4 0.4,1.3 0.3,1.4 0.1,1.2 0,11.6 0.3,0.8 0.3,0.3 3.7,1.9 -0.2,-1.2 0,-1.5 0.1,-1.2 0.2,-0.4 2.4,0 0.2,0.4 0.1,1.2 0,1.5 -0.3,2 -0.2,0 0,0.4 15.7,8.1 0.3,0.2 0.2,0.2 0.1,0.3 0,2.5 -0.2,0 0,-0.8 -7.5,-2.2 -0.1,0.5 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.1,-0.7 -4.8,-1.4 -0.1,0.5 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.1,-0.7 -2.3,-0.7 -1.1,0 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.8,0 -0.1,0.7 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.1,-0.7 -4,0 0,11.6 -0.1,2.9 -0.3,2 -0.3,1.7 -0.4,1.7 0.1,0.4 0.4,0.4 6.8,4.5 0.1,0.1 0.1,0.3 0,1.6 -8.2,-1.9 -0.3,1.3 -0.3,0.9 -0.2,0.7 0,0.3 -0.8,0 0,-0.3 -0.2,-0.7 -0.3,-0.9 -0.3,-1.3 -8.2,1.9 0,-1.6 0.1,-0.3 0.1,-0.1 6.8,-4.5 0.4,-0.4 0.1,-0.4 -0.4,-1.7 -0.3,-1.7 -0.3,-2 -0.1,-2.9 0,-11.6 -4,0 -0.1,0.7 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.1,-0.7 -0.8,0 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -1.1,0 -2.3,0.7 -0.1,0.7 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.1,-0.5 -4.8,1.4 -0.1,0.7 -0.1,0.4 -0.1,0.2 -0.1,-0.2 -0.1,-0.4 -0.1,-0.5 -7.5,2.2 0,0.8 -0.2,0 0,-2.5 0.1,-0.3 0.2,-0.2 0.3,-0.2 15.7,-8.1 0,-0.4 -0.2,0 -0.3,-2 0,-1.5 0.1,-1.2 0.2,-0.4 2.4,0 0.2,0.4 0.1,1.2 0,1.5 -0.2,1.2 3.7,-1.9 0.3,-0.3 0.3,-0.8 0,-11.6 0.1,-1.2 0.3,-1.4 0.4,-1.3 0.7,-1.4 0.7,-1.1 0.4,-0.4 z" stroke="black" stroke-width="0.5"/></g></g></svg>',
            size: [32,32]