Fix map to not animate on resize by default

This commit is contained in:
Vladimir Agafonkin 2012-08-06 13:36:52 +03:00
parent c18c394147
commit 0cca115ecb

View File

@ -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);