DotNet.GalaxyMap.Class.GalaxyMapMarkerCatalogue - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / GalaxyMap / GalaxyMapMarkerCatalogue

Class: GalaxyMapMarkerCatalogue

Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:35

The galaxy map's location markers and the lookups that search them.

Remarks

The galaxy map draws an icon over a system to say what is there: a bookmark, a community goal, a conflict zone, a damaged station. Each marker has a colour the game is consistent about, and this catalogue reports it.

A marker's GalaxyMapMarker.Symbol also names its vector asset, which the package carries under assets/galaxy-map/. Its root <svg> carries the same colour.

The colours are read from the in-game galaxy map. See data/galaxy-map/SOURCES.md for provenance and ATTRIBUTIONS.md for credit.

Example

using EliteDangerousAlmanac.GalaxyMap;

string? color = GalaxyMapMarkerCatalogue.FindColor("conflict-zone");
GalaxyMapMarker? marker = GalaxyMapMarkerCatalogue.FindBySymbol("front-line");
string frame = marker!.FrameColor;

Properties

All

static All: IReadOnlyList<GalaxyMapMarker>

Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:44

Every galaxy-map marker, sorted by GalaxyMapMarker.Symbol.

Methods

FindBySymbol()

static FindBySymbol(symbol): GalaxyMapMarker?

Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:52

Finds a marker by its symbol.

Parameters

symbol

string?

The marker symbol, such as station-under-attack. Leading and trailing whitespace and case are ignored.

Returns

GalaxyMapMarker?

The marker, or null when none has that symbol.

FindColor()

static FindColor(symbol): string?

Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:63

Finds the colour a marker's glyph is drawn in.

Parameters

symbol

string?

The marker symbol, such as titan. Leading and trailing whitespace and case are ignored.

Returns

string?

The #RRGGBB colour, or null when no marker has that symbol.

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