DotNet.GalaxyMap.Class.GalaxyMapMarkerCatalogue - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / GalaxyMap / GalaxyMapMarkerCatalogue
Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:35
The galaxy map's location markers and the lookups that search them.
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.
using EliteDangerousAlmanac.GalaxyMap;
string? color = GalaxyMapMarkerCatalogue.FindColor("conflict-zone");
GalaxyMapMarker? marker = GalaxyMapMarkerCatalogue.FindBySymbol("front-line");
string frame = marker!.FrameColor;
staticAll:IReadOnlyList<GalaxyMapMarker>
Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:44
Every galaxy-map marker, sorted by GalaxyMapMarker.Symbol.
staticFindBySymbol(symbol):GalaxyMapMarker?
Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:52
Finds a marker by its symbol.
string?
The marker symbol, such as station-under-attack. Leading and trailing whitespace and case are ignored.
The marker, or null when none has that symbol.
staticFindColor(symbol):string?
Defined in: dotnet/src/EliteDangerousAlmanac/GalaxyMap/GalaxyMapMarkerCatalogue.cs:63
Finds the colour a marker's glyph is drawn in.
string?
The marker symbol, such as titan. Leading and trailing whitespace and case are ignored.
string?
The #RRGGBB colour, or null when no marker has that symbol.