I’ve noticed a problem using the map card in a layout-card which is in a vertical-stack
I’m currently on 0.86.4 (this was working a a previous version, not sure exactly when it broke).
This is what my config looks like:
views: ... other views ... - title: Location path: location panel: true cards: - type: vertical-stack cards: - type: 'custom:entity-markdown' entity: sensor.banner_text - type: 'custom:layout-card' cards: - type: map entities: - device_tracker.my_phone - zone.home - zone.work
The entity-markdown card is my own card which displays Markdown formatted text from an entity state, which I use as a notification banner.
Initially everything looks fine, but if I do the following:
- Refresh the page when on the Location view
- Switch to another view
- Switch back to the Location view
The map fails to render probably, and I get the following error in the logs:
Uncaught Error: Map container is being reused by another instance
Once this has happened, the only way to fix it seems to be to switch back to another view and refresh
panel: true to
panel: false makes no difference.
If the layout-card is directly under the view rather than under the vertical-stack it works, but this means I can’t have any other cards above the layout-card.