Revert change
This commit is contained in:
parent
cc1f838d5d
commit
7c89f60283
@ -20,12 +20,12 @@ import 'leaflet-providers';
|
|||||||
import 'leaflet.markercluster/dist/leaflet.markercluster';
|
import 'leaflet.markercluster/dist/leaflet.markercluster';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
FormattedData,
|
FormattedData,
|
||||||
MapSettings,
|
MapSettings,
|
||||||
MarkerSettings,
|
MarkerSettings,
|
||||||
PolygonSettings,
|
PolygonSettings,
|
||||||
PolylineSettings,
|
PolylineSettings,
|
||||||
UnitedMapSettings
|
UnitedMapSettings
|
||||||
} from './map-models';
|
} from './map-models';
|
||||||
import { Marker } from './markers';
|
import { Marker } from './markers';
|
||||||
import { BehaviorSubject, Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
@ -222,7 +222,6 @@ export default abstract class LeafletMap {
|
|||||||
this.bounds = this.bounds.extend(this.options.defaultCenterPosition);
|
this.bounds = this.bounds.extend(this.options.defaultCenterPosition);
|
||||||
}
|
}
|
||||||
this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false });
|
this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false });
|
||||||
this.map.invalidateSize();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user