Showing
1 changed file
with
1 additions
and
0 deletions
... | ... | @@ -222,6 +222,7 @@ export default abstract class LeafletMap { |
222 | 222 | this.bounds = this.bounds.extend(this.options.defaultCenterPosition); |
223 | 223 | } |
224 | 224 | this.map.fitBounds(this.bounds, { padding: padding || [50, 50], animate: false }); |
225 | + this.map.invalidateSize(); | |
225 | 226 | } |
226 | 227 | } |
227 | 228 | } | ... | ... |