From ea184ec5d1c53106529c0cbef0f54162c409309f Mon Sep 17 00:00:00 2001 From: Artem Halushko Date: Fri, 22 May 2020 11:00:01 +0300 Subject: [PATCH] boundaries fix --- .../app/modules/home/components/widget/lib/maps/leaflet-map.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts index 9e7934529d..b10373ca7c 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts @@ -222,6 +222,7 @@ export default abstract class LeafletMap { this.bounds = this.bounds.extend(this.options.defaultCenterPosition); } this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false }); + this.map.invalidateSize(); } } }