LayerManager Theme Reapply State

"/home/yossef/notes/git/projects/maplibra/risks/LayerManager Theme Reapply State.md"

path: maplibra/risks/LayerManager Theme Reapply State.md

- **fileName**: LayerManager Theme Reapply State
- **Created on**: 2026-06-16 00:48:42

LayerManager Theme Reapply State

Migrated from: obs_vault

Parent: ./Theme Risk Index.md

Severity: medium-high.

Summary

LayerManager.reapplyThemeColors() updates some indoor layers explicitly, but doors, fast wall line layers, and some style-name heuristic cases can keep old colors or throw warnings during theme changes.

Code Evidence

Trigger Conditions

Likely Symptoms

Why It Matters

Indoor map theme is not one layer. It includes generated style layers, doors, labels, shell, feature-state expressions, and zoom opacity expressions. If one path is missed, the UI looks partially themed and can become low contrast.

Current Tests

Missing Tests

How To Make Better

Debug Steps

  1. Toggle theme after doors and labels are visible.
  2. Inspect map.getPaintProperty('doors', 'fill-extrusion-color') before and after.
  3. If fast wall mode is active, inspect layer type for each styleLayerIds entry.
  4. Watch console for Failed to update theme for layer ... warnings.
  5. Inspect whether building-shell layout visibility changed.

See Also