GeoLeaf Core API - v3.19.0
    Preparing search index...

    Represents the GeoLeaf Share subsystem (URL copy + lazy QR code). Has no dependencies — relies only on the permalink-synced window.location.

    Implements

    Index
    id: "share" = ...

    Unique module identifier within the GeoLeaf instance.

    The registry enforces uniqueness — registering two modules with the same id throws a GeoLeafError. Use lowercase kebab-case.

    `'geojson'`, `'route'`, `'legend'`, `'layer-manager'`
    
    dependencies: readonly [] = ...

    IDs of modules that must be fully initialised before this module's init() is called.

    The registry resolves a topological order from these declarations. An empty array means this module has no dependencies.

    Use as const in implementing classes for best type inference:

    readonly dependencies = ['poi', 'ui'] as const;
    
    ui: IModuleUISlot = ...

    Optional UI slot declaration.

    Declare this when the module contributes UI to the mobile toolbar pill or the desktop filter panel. The registry collects all slots via getUISlots() and passes them to the UI orchestrator.

    • Tears down the module and releases all resources.

      Must remove every event listener, DOM node, and layer reference created during init(). After destroy(), the module must be safe to garbage collect.

      Called by the registry in reverse dependency order (dependants are destroyed before their dependencies).

      Returns void