From 7c89f60283734c5c8f982acc9c17349afadd11bb Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Fri, 22 May 2020 19:11:42 +0300 Subject: [PATCH] Revert change --- .../home/components/widget/lib/maps/leaflet-map.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 02d1b6c518..9e7934529d 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 @@ -20,12 +20,12 @@ import 'leaflet-providers'; import 'leaflet.markercluster/dist/leaflet.markercluster'; import { - FormattedData, - MapSettings, - MarkerSettings, - PolygonSettings, - PolylineSettings, - UnitedMapSettings + FormattedData, + MapSettings, + MarkerSettings, + PolygonSettings, + PolylineSettings, + UnitedMapSettings } from './map-models'; import { Marker } from './markers'; import { BehaviorSubject, Observable } from 'rxjs'; @@ -222,7 +222,6 @@ 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(); } } }