Merge pull request #1975 from fredj/rotation-anchor

Rotate around arbitrary coordinate
This commit is contained in:
Frédéric Junod
2014-04-10 14:22:08 +02:00
8 changed files with 65 additions and 11 deletions

View File

@@ -544,7 +544,8 @@ olx.animation.PanOptions.prototype.easing;
/**
* @typedef {{rotation: number,
* @typedef {{rotation: (number|undefined),
* anchor: (ol.Coordinate|undefined),
* start: (number|undefined),
* duration: (number|undefined),
* easing: (function(number):number|undefined)}}
@@ -554,12 +555,21 @@ olx.animation.RotateOptions;
/**
* The rotation to apply, in radians.
* @type {number}
* The rotation value (in radians) to begin rotating from, typically
* `map.getView().getRotation()`. If `undefined` then `0` is assumed.
* @type {number|undefined}
*/
olx.animation.RotateOptions.prototype.rotation;
/**
* The rotation center/anchor. The map rotates around the center of the view
* if unspecified.
* @type {ol.Coordinate|undefined}
*/
olx.animation.RotateOptions.prototype.anchor;
/**
* The start time of the animation. Default is immediately.
* @type {number|undefined}