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

    Variable coreProfileLayersConst

    coreProfileLayers: () => Record<string, unknown>[] = profileLayers

    Engine alias of profileLayers — reads ALL declared layers of the active profile.

    ⚠️ Same sources, same traps and same no-duplication note as coreProfileLayerConfig: the substantive documentation is in kernel/shared/edition-permissions.ts.

    Type Declaration

      • (): Record<string, unknown>[]
      • Reads ALL layer declarations of the active profile, in profile order.

        🛑 Does NOT use getAllLayerConfigs(), and that is measured. The neighbouring barrel does expose that accessor, but kernel/geojson/loader/profile.ts fills it with a whitelist projection — id, label, layerManagerId, configFile, zIndex, themes, geometry, geometryType, styles, labels, showInLayerManager. Neither edition, nor offline, nor data, nor write. A permission reader going through it would see edition === undefined for every layer and refuse everything, silently.

        ⚠️ And it is NOT Config.Profile.getActiveProfileLayersConfig(): the Profile sub-object is not mounted on globalThis.GeoLeaf.Config, and the call throws. Measured in a browser, after a green unit test that mocked the hoped-for shape.

        Returns Record<string, unknown>[]

        The layer declarations, or [] when no profile is loaded.

    The layer declarations, or [] when no profile is loaded.

    const declarees = coreProfileLayers().filter((l) => l.offline);
    console.info(`${declarees.length} couche(s) déclarée(s) hors-ligne`);