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
23 stars 5 forks source link

[FR] Show a circle around a marker #76

Open ildar170975 opened 1 month ago

ildar170975 commented 1 month ago

Here is a device_tracker entity on a map:

image

Is it possible to display a circle around the marker dependingly on a gps_accuracy value? A stock map card shows it like this: image

Ofc if the gps_accuracy is not defined - then the circle is not displayed.

Another case - showing a zone: on the stock map a circle is shown based on a radius of this zone: image

Proposal:

  1. Add a new option defined on an entity's level - smth like show_circle (default is false). If defined & true - then show a circle: for zones - based on a radius, for other entities - based on gps-accuracy (if defined).
  2. Color of a circle may be same as color of a marker's border, same for a semi-transparent background.

Original discussion was here: https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088/21?u=ildar_gabdullin