fix iOS vectir zoom anim regression, close #1259

This commit is contained in:
Vladimir Agafonkin 2013-01-08 12:18:10 +02:00
parent 1677a7d40d
commit 80d0da1bdf

View File

@ -165,9 +165,9 @@ L.Map.include({
_animatePathZoom: function (e) { _animatePathZoom: function (e) {
var scale = this.getZoomScale(e.zoom), var scale = this.getZoomScale(e.zoom),
offset = this._getCenterOffset(e.center)._multiplyBy(-scale); offset = this._getCenterOffset(e.center)._multiplyBy(-scale)._add(this._pathViewport.min);
this._pathRoot.style[L.DomUtil.TRANSFORM] += this._pathRoot.style[L.DomUtil.TRANSFORM] =
L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ') '; L.DomUtil.getTranslateString(offset) + ' scale(' + scale + ') ';
this._pathZooming = true; this._pathZooming = true;