I’d like to add a small horizontal map to a lovelace dashboard that tracks the location of the ISS. Is it possible to remove the zoom controls and the leaflet footer from the map card?
1 Like
did you find solution for this ?
no, I haven’t, but would love to! I’ll reply here if I ever figure it out. Please do the same!
sure, I will. I think it can be done by using card_mod but I don’t know how
I spent a little time trying to wrap my head around modifying css using card mod and was able to remove the overlays from my little map!
card_mod:
style:
ha-map$: |
.leaflet-control-attribution {
visibility: hidden;
}
.leaflet-control-zoom {
visibility: hidden;
}
3 Likes
Been looking for just this. Any idea how to hide the reset focus button as well?
@sgxander to remove controls, reset, bottom right information
card_mod:
style:
ha-map$: |
.leaflet-control-attribution {
display:none !important;
}
.leaflet-control-zoom {
display:none !important;
}
ha-icon-button$: |
mwc-icon-button{display:none !important}
4 Likes
Fabulous! I’ve been looking for that for ages - thanks!