Removing comment out code and not needed todos
This commit is contained in:
parent
498aef4c31
commit
a071f489a5
@ -195,7 +195,6 @@ L.Map = L.Evented.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
stop: function () {
|
stop: function () {
|
||||||
//TODO: Need to know if we are in an anim so we can fire zoomend
|
|
||||||
|
|
||||||
//zoomPan
|
//zoomPan
|
||||||
L.Util.cancelAnimFrame(this._zoomPanFrame);
|
L.Util.cancelAnimFrame(this._zoomPanFrame);
|
||||||
@ -203,13 +202,14 @@ L.Map = L.Evented.extend({
|
|||||||
|
|
||||||
//PosAnimation
|
//PosAnimation
|
||||||
if (this._panAnim && this._panAnim._inProgress) {
|
if (this._panAnim && this._panAnim._inProgress) {
|
||||||
this._panAnim.stop(); //This handles everything
|
this._panAnim.stop();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//zoomAnimation
|
//zoomAnimation
|
||||||
if (this._animatingZoom) {
|
if (this._animatingZoom) {
|
||||||
this._stopAnimatedZoom();
|
this._stopAnimatedZoom();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -495,10 +495,11 @@ L.Map = L.Evented.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// private methods that modify map state
|
// private methods that modify map state
|
||||||
|
|
||||||
_resetView: function (center, zoom, preserveMapOffset, afterZoomAnim) {
|
_resetView: function (center, zoom, preserveMapOffset, afterZoomAnim) {
|
||||||
//console.log('resetView', center, zoom);
|
|
||||||
var zoomChanged = (this._zoom !== zoom);
|
var zoomChanged = (this._zoom !== zoom);
|
||||||
|
|
||||||
if (!afterZoomAnim) {
|
if (!afterZoomAnim) {
|
||||||
|
@ -38,7 +38,6 @@ L.Map.include({
|
|||||||
duration = 1000 * S * 0.8;
|
duration = 1000 * S * 0.8;
|
||||||
|
|
||||||
function frame() {
|
function frame() {
|
||||||
//console.log('frame');
|
|
||||||
var t = (Date.now() - start) / duration,
|
var t = (Date.now() - start) / duration,
|
||||||
s = easeOut(t) * S;
|
s = easeOut(t) * S;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user