Skip to content

createGalaxyMap

github-actions[bot] edited this page Sep 21, 2026 · 1 revision

Function: createGalaxyMap()

Imported from @elite-dangerous-almanac/galaxy-map.

createGalaxyMap(canvas, options?): GalaxyMap

Builds the map on a canvas and returns its handle in the same tick. The handle takes categories and systems before the scene data is ready, and ready settles when the first frame is drawn or when the card refuses the map.

Parameters

canvas

HTMLCanvasElement

options?

GalaxyMapOptions = {}

Returns

GalaxyMap

Clone this wiki locally