nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
31 stars 9 forks source link

Bug: long and unpredictable loading times #78

Open JasperSurmont opened 2 months ago

JasperSurmont commented 2 months ago

Hey,

First time user of this card. After a very basic setup I notice that the map stays white very long and only sporadically a successful render happens. I.e. upon refreshing, sometimes the map stays white for 20+ seconds, sometimes it loads within 2 seconds (which is still much longer than the native map)

I've enabled debug and opened the console but don't see any errors or warnings. It just takes a very long time before I see the debug logs stating that markers are created - after that in about a second the map appears.

If I change custom:map-card to map (native default map), everything works smoothly without delays.

What could be the issue / how can I try to figure out the issue?

nathan-gs commented 1 month ago

Do you use history or just the latest value? History loading is sometimes a bit slower, depending on your HA.

nathan-gs commented 1 month ago

@JasperSurmont can you check with the latest version? There was a small bug in the datapicker #81

Elu43 commented 1 month ago

@JasperSurmont can you check with the latest version? There was a small bug in the datapicker #81

Hi

Not OP, but I still have the same behavior with 1.5.0, with or without history

nathan-gs commented 1 month ago

Can you share the HA versions you are using? Thx

Elu43 commented 1 month ago

2024.8.3 as a docker container