stopAnimation -> stop
This commit is contained in:
parent
a0bc81cba8
commit
c1bea627b0
@ -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); };
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user