Skip to content

decodeView

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

Function: decodeView()

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

decodeView(fragment): MapView

Reads a view from a URL fragment, with or without the leading #. Missing or unreadable parts fall back to the default view, and the model limits are applied: the model bounds on the cursor, 10 to 120,000 light years on the distance, -89 to 89 degrees on the pitch and a wrap on the yaw.

It applies no map's browsable bounds, because it holds no map.

Parameters

fragment

string

Returns

MapView

Clone this wiki locally