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

    Variable ProfileManagerConst

    ProfileManager: {
        _config: GeoLeafConfig | null;
        _activeProfileId: string | null;
        _activeProfile: Record<string, unknown> | null;
        _activeProfileData: { mapping: Record<string, unknown> | null };
        init(config: GeoLeafConfig): void;
        reset(): void;
        isProfilePoiMappingEnabled(): boolean;
        loadActiveProfileResources(
            options?: {
                headers?: Record<string, string>;
                strictContentType?: boolean;
            },
        ): Promise<GeoLeafConfig>;
        _loadModularProfile(
            profile: Record<string, unknown>,
            baseUrl: string,
            timestamp: number,
            fetchOptions: LoadUrlOptions,
        ): Promise<GeoLeafConfig>;
        getActiveProfileId(): string | null;
        getActiveProfile(): Record<string, unknown> | null;
        getActiveProfileMapping(): Record<string, unknown> | null;
        getActiveProfileLayersConfig(): unknown[] | null;
        _fireProfileLoadedEvent(
            profileId: string,
            payload: ProfileDataPayload,
        ): void;
    } = ProfileModule

    Type Declaration

    • _config: GeoLeafConfig | null
    • _activeProfileId: string | null
    • _activeProfile: Record<string, unknown> | null
    • _activeProfileData: { mapping: Record<string, unknown> | null }
    • init: function
    • reset: function
      • Resets the active-profile state to its initial values. Called on map teardown (lifecycle seam + ConfigModule.destroy()) so a destroy → recreate cycle does not keep a stale active profile or its POIs/routes.

        _config (the Config singleton wiring) is intentionally preserved — it is a foundation reference, not per-map business state.

        Returns void

    • isProfilePoiMappingEnabled: function
    • loadActiveProfileResources: function
      • Parameters

        • options: { headers?: Record<string, string>; strictContentType?: boolean } = {}

        Returns Promise<GeoLeafConfig>

    • _loadModularProfile: function
    • getActiveProfileId: function
    • getActiveProfile: function
    • getActiveProfileMapping: function
    • getActiveProfileLayersConfig: function
    • _fireProfileLoadedEvent: function
      • Parameters

        • profileId: string
        • payload: ProfileDataPayload

        Returns void