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
19 stars 4 forks source link

Map is not shown if zero coords are set #9

Closed ildar170975 closed 3 months ago

ildar170975 commented 3 months ago

Consider this code:

type: vertical-stack
cards:
  - type: custom:map-card
    x: 10
    y: 10
  - type: custom:map-card
    x: 0
    y: 0

The 2nd card with zero coords not shown:

изображение

Have to add some digits after a point:

  - type: custom:map-card
    x: 0.001
    y: 0.001

изображение (map is zoomed to demonstrate a correct location)

0.4.0 HA 2024.3.1 Chrome 123.0.6312.59 (Win10x64)

nathan-gs commented 3 months ago

Fixed in v0.4.2

ildar170975 commented 3 months ago

Confirmed, the problem gone. Thank you!