stopAnimation -> stop

This commit is contained in:
Dave Leaver 2014-03-20 10:34:31 +13:00 committed by Vladimir Agafonkin
parent a0bc81cba8
commit c1bea627b0
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@
document.getElementById('dc').onclick = function () { map.zoomPanTo(dc, 10); };
document.getElementById('sf').onclick = function () { map.zoomPanTo(sf, 10); };
document.getElementById('stop').onclick = function () { map.stopAnimation(); };
document.getElementById('stop').onclick = function () { map.stop(); };
// document.getElementById('london').onclick = function () { map.zoomPanTo(london); };
// document.getElementById('kyiv').onclick = function () { map.zoomPanTo(kyiv); };

View File

@ -196,8 +196,8 @@ L.Map = L.Evented.extend({
});
},
stopAnimation: function () {
//TODO: Need to know if we are in a anim so we can fire zoomend
stop: function () {
//TODO: Need to know if we are in an anim so we can fire zoomend
//zoomPan
L.Util.cancelAnimFrame(this._zoomPanFrame);

View File

@ -2,7 +2,7 @@
L.Map.include({
zoomPanTo: function (targetCenter, targetZoom) {
this.stopAnimation();
this.stop();
var from = this.project(this.getCenter()),
to = this.project(targetCenter),