Main orchestrator for GeoLeaf API operations. Manages the lifecycle of the module, initialisation, and factory managers.

Constructors

Properties

isInitialized: boolean
managers: IAPIManagerRecord
moduleAccessFn: null | IModuleAccessFn
healthStatus: IControllerHealthStatus

Methods

  • Delegates GeoLeaf.init() to the initialisation manager.

    Parameters

    • options: Record<string, unknown>

      Raw init options

    Returns unknown

  • Delegates GeoLeaf.loadConfig() to the initialisation manager.

    Parameters

    • input: string | Record<string, unknown>

      URL string or config object

    Returns Promise<unknown>

  • Delegates GeoLeaf.setTheme() to the initialisation manager.

    Parameters

    • theme: string

      Theme identifier

    Returns boolean

  • Delegates GeoLeaf.createMap() to the factory manager.

    Parameters

    • targetId: string

      DOM element id for the new map

    • Optionaloptions: Record<string, unknown>

      Map creation options

    Returns unknown

  • Returns the current health status of the controller.

    Returns IControllerHealthStatus & {
        isInitialized: boolean;
        managersCount: number;
        hasModuleAccess: boolean;
    }