From a62997d6ce0363724a3c9aeefacea36589505f6f Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Tue, 10 Mar 2026 19:32:14 +0100 Subject: [PATCH] [fix](trx-frontend-http): propagate color/outline in TrackSymbol setAisState setAisState only updated heading/course/speed, silently dropping color and outline fields. Extend it to also accept and apply those fields so theme color refreshes take effect without recreating the marker. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Stan Grams --- .../trx-frontend-http/assets/web/leaflet-ais-tracksymbol.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/leaflet-ais-tracksymbol.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/leaflet-ais-tracksymbol.js index 94b704d..ad0d13b 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/leaflet-ais-tracksymbol.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/leaflet-ais-tracksymbol.js @@ -92,6 +92,8 @@ if ("heading" in next) this.options.heading = next.heading; if ("course" in next) this.options.course = next.course; if ("speed" in next) this.options.speed = next.speed; + if ("color" in next) this.options.color = next.color; + if ("outline" in next) this.options.outline = next.outline; } this._refreshIcon(); return this;