mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +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}
|
.zoom=${this._config.default_zoom ?? 14}
|
||||||
.paths=${this._getHistoryPaths(this._config, this._history)}
|
.paths=${this._getHistoryPaths(this._config, this._history)}
|
||||||
|
.autoFit=${this._config.auto_fit}
|
||||||
.darkMode=${this._config.dark_mode}
|
.darkMode=${this._config.dark_mode}
|
||||||
></ha-map>
|
></ha-map>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
|
@ -265,6 +265,7 @@ export interface MapCardConfig extends LovelaceCardConfig {
|
|||||||
type: "map";
|
type: "map";
|
||||||
title?: string;
|
title?: string;
|
||||||
aspect_ratio?: string;
|
aspect_ratio?: string;
|
||||||
|
auto_fit?: boolean;
|
||||||
default_zoom?: number;
|
default_zoom?: number;
|
||||||
entities?: Array<EntityConfig | string>;
|
entities?: Array<EntityConfig | string>;
|
||||||
hours_to_show?: number;
|
hours_to_show?: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user