Fit map on load (#18819)

This commit is contained in:
karwosts 2023-11-30 01:49:40 -08:00 committed by GitHub
parent 843430ef41
commit 07b807adfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ export class HaMap extends ReactiveElement {
autoFitRequired = true;
}
if (this.autoFit && autoFitRequired) {
if (changedProps.has("_loaded") || (this.autoFit && autoFitRequired)) {
this.fitMap();
}