Make map card clustering configurable (#25429)

* Persistent map clustering

* Make config option instead
This commit is contained in:
Jan-Philipp Benecke 2025-05-14 11:27:42 +02:00 committed by GitHub
parent 87f9397643
commit d0e55719d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
? processConfigEntities<MapEntityConfig>(this._config.entities)
: [];
this._mapEntities = this._getMapEntities();
this._clusterMarkers = this._config.cluster ?? true;
}
public getCardSize(): number {

View File

@ -337,6 +337,7 @@ export interface MapCardConfig extends LovelaceCardConfig {
geo_location_sources?: (GeoLocationSourceConfig | string)[];
dark_mode?: boolean;
theme_mode?: ThemeMode;
cluster?: boolean;
}
export interface MarkdownCardConfig extends LovelaceCardConfig {