ConstOptionalselection: LayerSelection | nullOptionaltrace: TilePreparationTraceThe resource accumulator.
The layer config's styles block, whatever its origin.
URL prefix of the layer directory, no trailing slash.
Layer identifier, for logging.
The {layerId} fragment all resources carry.
Pushes a layer's style files into the offline resources.
🛑 Called from BOTH branches, and that is the point.
configFilelayers andlayerTemplatesinstances 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
profilesBasePathvalues 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.