Merge pull request #4212 from Leaflet/non3d-updatetransform

Branch L.Renderer.updateTransform when not L.Browser.any3d, fixes #4211
This commit is contained in:
Iván Sánchez Ortega 2016-02-09 20:13:55 +01:00
commit ae91ffd248

View File

@ -63,7 +63,11 @@ L.Renderer = L.Layer.extend({
topLeftOffset = viewHalf.multiplyBy(-scale).add(position).add(viewHalf).subtract(centerOffset);
L.DomUtil.setTransform(this._container, topLeftOffset, scale);
if (L.Browser.any3d) {
L.DomUtil.setTransform(this._container, topLeftOffset, scale);
} else {
L.DomUtil.setPosition(this._container, topLeftOffset);
}
},
_reset: function () {