parent
4c8ffadf30
commit
bbc3f2fab1
@ -34,7 +34,15 @@ L.Map.include(!zoomAnimated ? {} : {
|
||||
this._panes.mapPane.appendChild(proxy);
|
||||
|
||||
this.on('zoomanim', function (e) {
|
||||
var prop = L.DomUtil.TRANSFORM,
|
||||
transform = proxy.style[prop];
|
||||
|
||||
L.DomUtil.setTransform(proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1));
|
||||
|
||||
// workaround for case when transform is the same and so transitionend event is not fired
|
||||
if (transform === proxy.style[prop] & this._animatingZoom) {
|
||||
this._onZoomTransitionEnd();
|
||||
}
|
||||
}, this);
|
||||
|
||||
this.on('load moveend', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user