Add rotate control

- displayed when rotation ≠ 0
 - reset rotation on click
This commit is contained in:
Antoine Abt
2014-04-30 11:34:49 +02:00
parent 12d4cb5752
commit 229ae5e883
3 changed files with 216 additions and 2 deletions
+55
View File
@@ -875,6 +875,61 @@ olx.control.ScaleLineOptions.prototype.target;
olx.control.ScaleLineOptions.prototype.units;
/**
* @typedef {{duration: (number|undefined),
* className: (string|undefined),
* label: (string|undefined),
* tipLabel: (string|undefined),
* target: (Element|undefined),
* autoHide: (boolean|undefined),
* duration: (number|undefined)}}
* @todo stability experimental
*/
olx.control.RotateOptions;
/**
* CSS class name. Default is `ol-rotate`.
* @type {string|undefined}
*/
olx.control.RotateOptions.prototype.className;
/**
* Text label to use for the rotate button. Default is `⇧`
* @type {string|undefined}
*/
olx.control.RotateOptions.prototype.label;
/**
* Text label to use for the rotate tip. Default is `Reset rotation`
* @type {string|undefined}
*/
olx.control.RotateOptions.prototype.tipLabel;
/**
* Animation duration in milliseconds. Default is `250`.
* @type {number|undefined}
*/
olx.control.RotateOptions.prototype.duration;
/**
* Hide the control when rotation is 0. Default is `true`.
* @type {boolean|undefined}
*/
olx.control.RotateOptions.prototype.autoHide;
/**
* Target.
* @type {Element|undefined}
*/
olx.control.RotateOptions.prototype.target;
/**
* @typedef {{duration: (number|undefined),
* className: (string|undefined),