From b747af9593f978e5ca92a76b068b4a28b9bcc9f1 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Tue, 24 Feb 2026 14:57:33 +0100 Subject: [PATCH] Fixed Image map creating sequence to reduce errors --- .../app/modules/home/components/widget/lib/maps/image-map.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/image-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/image-map.ts index 3a142db711..238e6c8ac5 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/image-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/image-map.ts @@ -78,8 +78,6 @@ export class TbImageMap extends TbMap { this.onResize(true); } else { this.onResize(); - this.initMapSubject.next(this.map); - this.initMapSubject.complete(); } }); return this.initMapSubject.asObservable(); @@ -222,6 +220,8 @@ export class TbImageMap extends TbMap { attributionControl: false }); this.updateMaxBounds(updateImage); + this.initMapSubject.next(this.map); + this.initMapSubject.complete(); } }