Fix map to not animate on resize by default
This commit is contained in:
parent
c18c394147
commit
0cca115ecb
@ -212,7 +212,8 @@ L.Map = L.Class.extend({
|
||||
if (!this._loaded) { return this; }
|
||||
|
||||
var offset = oldSize.subtract(this.getSize()).divideBy(2, true);
|
||||
if (animate) {
|
||||
|
||||
if (animate === true) {
|
||||
this.panBy(offset);
|
||||
} else {
|
||||
this._rawPanBy(offset);
|
||||
|
Loading…
Reference in New Issue
Block a user