Class: ol.Kinetic

ol.Kinetic

new Kinetic

Parameters:
Name Type Description
decay number Rate of decay (must be negative).
minVelocity number Minimum velocity (pixels/millisecond).
delay number Delay to consider to calculate the kinetic initial values (milliseconds).
Source:
  • kinetic.js, line 25

Methods

begin

FIXME empty description for jsdoc
Source:
  • kinetic.js, line 68

end

Source:
  • kinetic.js, line 91
Returns:
Whether we should do kinetic animation.
Type
boolean

getAngle

Source:
  • kinetic.js, line 152
Returns:
Angle of the kinetic panning animation (radians).
Type
number

getDistance

Source:
  • kinetic.js, line 144
Returns:
Total distance travelled (pixels).
Type
number

pan

Parameters:
Name Type Description
source ol.Coordinate Source coordinate for the animation.
Source:
  • kinetic.js, line 115
Returns:
Pre-render function for kinetic animation.
Type
ol.PreRenderFunction

update

Parameters:
Name Type Description
x number X.
y number Y.
Source:
  • kinetic.js, line 79