Skip to content

Fix picture markers overlaying auto-generated initials - #227

Merged
nathan-gs merged 2 commits into
mainfrom
fix-197-picture-marker-label
Aug 19, 2026
Merged

nathan-gs merged 2 commits into
mainfrom
fix-197-picture-marker-label

Conversation

@nathan-gs

Copy link
Copy Markdown
Owner

Fixes #197.

v1.14 (#172) added a label banner on picture markers. The condition was:

```js
const hasLabel = this.title && (this.prefix || this.suffix || this.title.trim());
```

`title` is the auto-generated initials (e.g. `KL`), so every entity picture got initials drawn over the photo. That matches the double-`KL` reports vs v1.13.1.

Changes

  • Overlay text on a picture only when the user set `prefix`, `suffix`, or `label`.
  • Pass `label` through from entity config so an explicit label still overlays the photo (as documented).
  • README note clarifying the picture-overlay behaviour.

`display: icon` / `state` / `attribute` are unchanged.

v1.14 started drawing a label banner on every picture marker because
hasLabel treated the initials title as requested text. Restore the
v1.13.1 photo-only default: overlay only when prefix, suffix, or an
explicit label is set.
@nathan-gs
nathan-gs merged commit 0154fc4 into main Aug 19, 2026
4 checks passed
@nathan-gs
nathan-gs deleted the fix-197-picture-marker-label branch August 19, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Marker not displaying correctly on latest release

1 participant