mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Make map card clustering configurable (#25429)
* Persistent map clustering * Make config option instead
This commit is contained in:
parent
87f9397643
commit
d0e55719d1
@ -139,6 +139,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
? processConfigEntities<MapEntityConfig>(this._config.entities)
|
? processConfigEntities<MapEntityConfig>(this._config.entities)
|
||||||
: [];
|
: [];
|
||||||
this._mapEntities = this._getMapEntities();
|
this._mapEntities = this._getMapEntities();
|
||||||
|
this._clusterMarkers = this._config.cluster ?? true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCardSize(): number {
|
public getCardSize(): number {
|
||||||
|
@ -337,6 +337,7 @@ export interface MapCardConfig extends LovelaceCardConfig {
|
|||||||
geo_location_sources?: (GeoLocationSourceConfig | string)[];
|
geo_location_sources?: (GeoLocationSourceConfig | string)[];
|
||||||
dark_mode?: boolean;
|
dark_mode?: boolean;
|
||||||
theme_mode?: ThemeMode;
|
theme_mode?: ThemeMode;
|
||||||
|
cluster?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MarkdownCardConfig extends LovelaceCardConfig {
|
export interface MarkdownCardConfig extends LovelaceCardConfig {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user