Browse Source

Revert change

pull/2817/head
Vladyslav_Prykhodko 6 years ago
parent
commit
7c89f60283
  1. 13
      ui-ngx/src/app/modules/home/components/widget/lib/maps/leaflet-map.ts

13
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();
}
}
}

Loading…
Cancel
Save