I was wondering if anyone would have any idea on how to set different icons for the aircraft type on live map. I’m not great with jquery functions so anyone able to resolve this would be a great help
I’m assuming it would be something along the lines of this
const getHeadingIcon = (heading) =\> { if (!(heading in headingIcons)) { headingIcons[heading] = L.icon({ iconUrl: url + "/lib/images/inair/" + aircraft + heading + ".png", iconSize: [35, 35] }); }
Many thanks