mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 21:37:21 +00:00
Merge pull request #13228 from voydz/lovelace-map-autofit
This commit is contained in:
commit
826474518f
@ -134,6 +134,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
||||
)}
|
||||
.zoom=${this._config.default_zoom ?? 14}
|
||||
.paths=${this._getHistoryPaths(this._config, this._history)}
|
||||
.autoFit=${this._config.auto_fit}
|
||||
.darkMode=${this._config.dark_mode}
|
||||
></ha-map>
|
||||
<ha-icon-button
|
||||
|
@ -265,6 +265,7 @@ export interface MapCardConfig extends LovelaceCardConfig {
|
||||
type: "map";
|
||||
title?: string;
|
||||
aspect_ratio?: string;
|
||||
auto_fit?: boolean;
|
||||
default_zoom?: number;
|
||||
entities?: Array<EntityConfig | string>;
|
||||
hours_to_show?: number;
|
||||
|
Loading…
x
Reference in New Issue
Block a user