|
|
@ -841,7 +841,7 @@ export default abstract class LeafletMap { |
|
|
this.fitBounds(bounds); |
|
|
this.fitBounds(bounds); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (this.options.initDragMode && !this.initDragModeIgnoreUpdateBoundsSet) { |
|
|
if (this.options.initDragMode && !this.initDragModeIgnoreUpdateBoundsSet && bounds.isValid()) { |
|
|
this.initDragModeIgnoreUpdateBoundsSet = true; |
|
|
this.initDragModeIgnoreUpdateBoundsSet = true; |
|
|
this.ignoreUpdateBounds = true; |
|
|
this.ignoreUpdateBounds = true; |
|
|
} |
|
|
} |
|
|
|