[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 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -92,6 +92,8 @@
|
|||||||
if ("heading" in next) this.options.heading = next.heading;
|
if ("heading" in next) this.options.heading = next.heading;
|
||||||
if ("course" in next) this.options.course = next.course;
|
if ("course" in next) this.options.course = next.course;
|
||||||
if ("speed" in next) this.options.speed = next.speed;
|
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();
|
this._refreshIcon();
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user