ConstInitialise the Permalink module with the config extracted from the active profile.
Must be called before readAndStore().
Permalink section of ui.permalink or an empty object.
Read the current URL and cache the parsed state.
Call this before map creation so the stored state is available for applyStoredState.
Apply the stored state (from readAndStore) to the given map instance.
Must be called after the map and all modules are initialised.
MapLibre map adapter instance.
Begin continuous URL synchronisation on map move/zoom events.
Call this after applyStoredState to avoid overwriting the restored state.
MapLibre map adapter instance.
Stop URL synchronisation started by Permalink.startSync, removing every
listener it attached (map moveend + the three document listeners). Safe to call
when no sync is active.
Return the currently cached permalink state (read-only).
Returns null if readAndStore was not called or found no permalink in the URL.
⚠️ A null therefore means two different things — the page was not opened through a
permalink, or Permalink.readAndStore has not run yet. Only the boot order tells
them apart.
Serialise state (or the cached stored state) to a URL fragment / query string.
Optionalstate: PermalinkState | nullOptional explicit state. Falls back to _storedState.
URL string starting with # or ?, or empty string if no state.
Returns true when permalink is enabled (modules.permalink.enabled !== false).
Returns the resolved modules.permalink config (merged over the built-in defaults).
Public Permalink facade — bound to
GeoLeaf.Permalink.