What's new in beta2
Fixed
- Map floats above HA navigation — Leaflet's CSS sets
z-index:1000on its control elements. Without an isolated stacking context, those values competed in the document stacking context and appeared above HA's sidebar, navigation drawer, and other overlays.isolation:isolateon the card's shadow host contains Leaflet's z-index scope entirely within the card. (Fixes #95) - Timestamp wraps to second line — The locale-aware timestamp (weekday + date + time) was clipped to a 120 px container. Removing the fixed width and adding
white-space:nowrapkeeps it on one line regardless of locale or time format length.
What's new since 3.0.1 (full changelog)
Multi-marker support
Replace show_marker / marker_latitude / marker_longitude with a markers list. Each entry is independent:
markers:
- entity: zone.home
icon: mdi:home
color: '#4CAF50'
- entity: person.john
icon: entity_picture
track: entity
- entity: device_tracker.van
icon: mdi:car
color: '#2196F3'
track: entityMarker fields
| Field | Description |
|---|---|
entity
| device_tracker.*, person.*, or zone.* — live position from HA state
|
latitude / longitude
| Static position |
icon
| default, entity_picture, or mdi:icon-name
|
color
| CSS colour for default/MDI icons |
track
| entity or true — auto-centre the map
|
mobile_only
| Only show on mobile |
home_radius
| Home suppression radius in metres (default 500, 0 = always show) |
Track resolution priority
track: entityon aperson.*matching the logged-in HA usertrack: entityon any other entitytrack: true— always-on fallback
Home suppression
Entity-based markers are hidden when at home:
- HA
state: homeis checked first (handles GPS drift) - Falls back to distance check using
home_radius home_radius: 0disables suppression for that markerzone.*entities and static lat/lon markers are never suppressed- When migrating
show_marker: truewith no position, azone.homemarker is created automatically
Auto-migration
Existing YAML with show_marker, marker_latitude, etc. continues to work — the card converts it in memory on load and logs a deprecation warning.
Other fixes since 3.0.1
useDefineForClassFields: false— ES2022 target was silently breaking LitElement@property()accessors, causing the card to produce no DOM at allshow_scalewas never wired to the Leaflet scale control- 126 unit tests (Vitest) gating every PR
This is a beta release. The marker API is stable. Please report issues on GitHub.