GeoLeaf Core API - v3.19.0
    Preparing search index...
    ResourceEnumerator: {
        enumerateAll(
            profile: ProfileLike,
            profileId: string,
            selection?: LayerSelection | null,
            trace?: TilePreparationTrace,
        ): Promise<CacheResource[]>;
        _addStyleResources(
            resources: CacheResource[],
            styles: unknown,
            layerDirUrl: string,
            layerId: string | undefined,
            layerIdPart: { layerId?: string },
        ): void;
    } = ...

    Type Declaration

    • enumerateAll: function
    • _addStyleResources: function
      • Pushes a layer's style files into the offline resources.

        🛑 Called from BOTH branches, and that is the point. configFile layers and layerTemplates instances are enumerated through two distinct paths; adding styles to only one of them leaves the other family without offline styles — exactly the defect recorded above in this file for the data, reproduced identically.

        ⚠️ The path prefix is passed by the caller, never recomputed here. The repo's three default profilesBasePath values diverge deliberately ("profiles" in the style loader, "profiles" in the legend, "../profiles" here): a well-meaning "harmonisation" would cache the resource under a key nobody looks up.

        Parameters

        • resources: CacheResource[]

          The resource accumulator.

        • styles: unknown

          The layer config's styles block, whatever its origin.

        • layerDirUrl: string

          URL prefix of the layer directory, no trailing slash.

        • layerId: string | undefined

          Layer identifier, for logging.

        • layerIdPart: { layerId?: string }

          The {layerId} fragment all resources carry.

        Returns void