DotNet.GalaxyMap.Record.GalaxyMapMarker - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / GalaxyMap / GalaxyMapMarker

Record: GalaxyMapMarker

Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarker.cs:28

One galaxy-map location marker and the two colours the game draws it in.

Remarks

Both colours are uppercase seven-character #RRGGBB strings, so a caller can hand either straight to a colour parser, a brush or a stylesheet.

The marker's vector asset paints with currentColor under a root color attribute holding Color, so a host that embeds the file inline recolours it with one CSS color declaration. The frame of a marker whose FrameColor differs is the one part that declaration does not reach.

Constructors

new GalaxyMapMarker()

new GalaxyMapMarker(Symbol, Color, FrameColor)

Parameters

Symbol

string

The marker's stable identifier, in lower-case kebab case, such as front-line. It is also the base name of the marker's vector asset, assets/galaxy-map/<symbol>.svg.

Color

string

The glyph's colour. This is the marker's primary colour: the one a caller uses to tint an icon, draw a legend swatch or colour a map pin.

FrameColor

string

The square border's colour. It matches Color on every marker but front-line, which the game frames in a darker purple than its arrow. It is always present, so a caller never has to fall back to Color.

Properties

Color

Color: string

The glyph's colour. This is the marker's primary colour: the one a caller uses to tint an icon, draw a legend swatch or colour a map pin.

FrameColor

FrameColor: string

The square border's colour. It matches Color on every marker but front-line, which the game frames in a darker purple than its arrow. It is always present, so a caller never has to fall back to Color.

Symbol

Symbol: string

The marker's stable identifier, in lower-case kebab case, such as front-line. It is also the base name of the marker's vector asset, assets/galaxy-map/<symbol>.svg.

⚠️ **GitHub.com Fallback** ⚠️