| Kinetic.js | |
| Properties | |
| threshold | In most cases changing the threshold isn’t needed. |
| deceleration | {Float} the deseleration in px/ms², default to 0.0035. |
| nbPoints | {Integer} the number of points we use to calculate the kinetic initial values. |
| delay | {Float} time to consider to calculate the kinetic initial values. |
| points | List of points use to calculate the kinetic initial values. |
| timerId | ID of the timer. |
| Constructor | |
| OpenLayers. | |
| Functions | |
| begin | Begins the dragging. |
| update | Updates during the dragging. |
| end | Ends the dragging, start the kinetic. |
| move | Launch the kinetic move pan. |
end: function( xy )
Ends the dragging, start the kinetic.
| xy | {OpenLayers.Pixel} The last position. |
{Object} An object with two properties: “speed”, and “theta”. The “speed” and “theta” values are to be passed to the move function when starting the animation.
move: function( info, callback )
Launch the kinetic move pan.
| info | {Object} An object with two properties, “speed”, and “theta”. These values are those returned from the “end” call. |
| callback | {Function} Function called on every step of the animation, receives x, y (values to pan), end (is the last point). |
Begins the dragging.
begin: function()
Updates during the dragging.
update: function( xy )
Ends the dragging, start the kinetic.
end: function( xy )
Launch the kinetic move pan.
move: function( info, callback )