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.
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, butkernel/geojson/loader/profile.tsfills it with a whitelist projection —id, label, layerManagerId, configFile, zIndex, themes, geometry, geometryType, styles, labels, showInLayerManager. Neitheredition, noroffline, nordata, norwrite. A permission reader going through it would seeedition === undefinedfor every layer and refuse everything, silently.⚠️ And it is NOT
Config.Profile.getActiveProfileLayersConfig(): theProfilesub-object is not mounted onglobalThis.GeoLeaf.Config, and the call throws. Measured in a browser, after a green unit test that mocked the hoped-for shape.