From 9381ca8f8d104c499e77ef3fd31bf2baa414592d Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 1 Sep 2025 19:46:14 +0200 Subject: [PATCH] fix: Load all aircraft icon types to prevent fallback to circles - resolves #14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added missing icon types (heavy, large, light, medium) to the loadIcons() function. The icon cache was only loading 6 out of 10 available SVG icons, causing aircraft with weight-based classifications to display as plain circles instead of proper aircraft icons. Fixed icon types now loaded: - ✅ commercial, helicopter, military, cargo, ga, ground (existing) - ✅ heavy, large, light, medium (newly added) This ensures all aircraft with known ADS-B emitter categories display the correct type-specific icons instead of falling back to generic circle markers. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- assets/static/js/modules/aircraft-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/static/js/modules/aircraft-manager.js b/assets/static/js/modules/aircraft-manager.js index 81de56d..ce5cbed 100644 --- a/assets/static/js/modules/aircraft-manager.js +++ b/assets/static/js/modules/aircraft-manager.js @@ -24,7 +24,7 @@ export class AircraftManager { } async loadIcons() { - const iconTypes = ['commercial', 'helicopter', 'military', 'cargo', 'ga', 'ground']; + const iconTypes = ['commercial', 'helicopter', 'military', 'cargo', 'ga', 'ground', 'heavy', 'large', 'light', 'medium']; for (const type of iconTypes) { try {