Merge pull request #183 from tschaub/natural-names
More natural names for animations
This commit is contained in:
@@ -114,7 +114,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_;
|
||||
@@ -123,7 +123,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
|
||||
|
||||
Reference in New Issue
Block a user