Browse Source

Fixed Image map creating sequence to reduce errors

pull/15099/head
Maksym Tsymbarov 7 months ago
committed by Vladyslav Prykhodko
parent
commit
b747af9593
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/maps/image-map.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/maps/image-map.ts

@ -78,8 +78,6 @@ export class TbImageMap extends TbMap<ImageMapSettings> {
this.onResize(true); this.onResize(true);
} else { } else {
this.onResize(); this.onResize();
this.initMapSubject.next(this.map);
this.initMapSubject.complete();
} }
}); });
return this.initMapSubject.asObservable(); return this.initMapSubject.asObservable();
@ -222,6 +220,8 @@ export class TbImageMap extends TbMap<ImageMapSettings> {
attributionControl: false attributionControl: false
}); });
this.updateMaxBounds(updateImage); this.updateMaxBounds(updateImage);
this.initMapSubject.next(this.map);
this.initMapSubject.complete();
} }
} }

Loading…
Cancel
Save