More natural names for animations

This commit is contained in:
Tim Schaub
2013-02-06 13:43:54 -07:00
parent 9c9fe4a9b1
commit a2bbdf7ccc
7 changed files with 54 additions and 54 deletions

View File

@@ -112,7 +112,7 @@ ol.Kinetic.prototype.end = function() {
* @param {ol.Coordinate} source Source coordinate for the animation.
* @return {ol.PreRenderFunction} Pre-render function for kinetic animation.
*/
ol.Kinetic.prototype.createPanFrom = function(source) {
ol.Kinetic.prototype.pan = function(source) {
var decay = this.decay_;
var initialVelocity = this.initialVelocity_;
var minVelocity = this.minVelocity_;
@@ -121,7 +121,7 @@ ol.Kinetic.prototype.createPanFrom = function(source) {
return initialVelocity * (Math.exp((decay * t) * duration) - 1) /
(minVelocity - initialVelocity);
};
return ol.animation.createPanFrom({
return ol.animation.pan({
source: source,
duration: duration,
easing: easingFunction