thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.05k stars 125 forks source link

map card + layout-card: map is displayed erratically #193

Closed ildar170975 closed 1 year ago

ildar170975 commented 2 years ago

My Home Assistant version: 2022.4.0

Layout-card version (FROM BROWSER CONSOLE): 2.4.2

Win10x64, Chrome.

What I am doing: 1) The vertical-layout selected for the view. 2) Two map cards are added on the view.

What I expected to happen: Map cards are displayed.

What happened instead: Map cards may not be displayed at all, page refresh (F5) may not help.

Minimal steps to reproduce: 1) Create a new view. 2) Add this code for the view:

title: test-3
path: test-test-3
type: custom:vertical-layout
badges: []
cards:

  - type: map
    entities:
    - entity: person.ildar

  - type: vertical-stack
    cards:
      - type: entities
        entities:
          - sun.sun
      - type: map
        entities:
        - entity: person.mama

3) See if both the map cards are displayed. In my case just one map was displayed (the 2nd one which is inside vertical-stack): image

4) Press F5 to refresh the page - usually it does not help but sometimes the 1st map card may be displayed too.

5) Now comment this line:

type: custom:vertical-layout

6) See if both the map cards are displayed. In my case both the cards were displayed: image

7) Now edit the code:

title: test-3
path: test-test-3
type: custom:vertical-layout
badges: []
cards:

  - type: map
    entities:
    - entity: person.ildar

  - type: entities
    entities:
      - sun.sun

  - type: map
    entities:
    - entity: person.mama

8) See if both the map cards are displayed. In my case only the Entities card was displayed: image

9) Press F5 to refresh the page - usually it does not help but sometimes the 1st & 2nd map cards may be displayed too.

Error messages from the browser console: None

By putting an X in the boxes ([X]) below, I indicate that I:

ildar170975 commented 2 years ago

iOS Companion App - do not observe the issue (iPad Air 2, iOS 15.x). Chrome + Win10 - the issue still present

ildar170975 commented 1 year ago

2023.1.6 Do not observe this problem. Closing now.