Skip to content

decodeGrid

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

Function: decodeGrid()

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

decodeGrid(fragment): boolean | null

Reads the coordinate grid switch from a URL fragment: true for g=1, false for g=0 and null for a fragment that names no readable g. A null leaves the switch where the page's own default put it.

Parameters

fragment

string

Returns

boolean | null

Clone this wiki locally