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

    Full structural type of the _ThemeApplier module object. Members are attached across four files (core/deferred/visibility/ui-sync); each file casts the shared ThemeApplierCore binding to this interface.

    interface ThemeApplierModule {
        _currentThemeId: string | null;
        _isFirstLoad: boolean;
        _pendingLayerConfigs: Map<string, PendingLayerConfig>;
        _pendingCheckTimer: Timeout | null;
        _init(): void;
        _cleanup(): void;
        applyTheme(theme: ThemeConfig, options?: ApplyThemeOptions): Promise<void>;
        _applyThemeLayers(
            theme: ThemeConfig,
            options: ApplyThemeOptions,
        ): Promise<void>;
        getCurrentThemeId(): string | null;
        _scheduleLayerConfig(
            layerId: string,
            visible: boolean,
            styleId: string | undefined,
        ): Promise<void>;
        _schedulePendingCheck(): void;
        _checkPendingLayerConfigs(): void;
        _loadLayerFromProfile(layerId: string): Promise<unknown>;
        _resolveDataFilePath(layerConfig: ProfileLayerConfig): string | null;
        _getProfilesBasePath(activeProfile: ActiveProfile): string;
        _normalizeBasePath(path: string): string;
        _hideAllLayers(): void;
        _applyLayerConfig(layerConfig: ThemeLayerConfig): Promise<unknown>;
        _setLayerVisibilityAndStyle(
            layerId: string,
            visible: boolean,
            styleId: string | undefined,
        ): Promise<unknown>;
        _updateStyleSelector(layerId: string, styleId: string | undefined): void;
        _loadLegendForStyle(layerId: string, styleId: string | undefined): void;
        _fitBoundsOnAllLayers(): void;
        _syncLegendVisibility(): void;
    }
    Index

    Properties

    _currentThemeId: string | null
    _isFirstLoad: boolean
    _pendingLayerConfigs: Map<string, PendingLayerConfig>
    _pendingCheckTimer: Timeout | null

    Methods

    • Parameters

      • layerId: string
      • visible: boolean
      • styleId: string | undefined

      Returns Promise<void>

    • Parameters

      • layerId: string
      • visible: boolean
      • styleId: string | undefined

      Returns Promise<unknown>