Add rotation property to ol.style.Text

This commit is contained in:
Frederic Junod
2013-12-02 10:55:37 +01:00
parent 287377c844
commit 1bf2d94968
2 changed files with 6 additions and 0 deletions

View File

@@ -657,6 +657,7 @@
/**
* @typedef {Object} ol.style.TextOptions
* @property {string|undefined} font Font.
* @property {number|undefined} rotation Rotation.
* @property {string|undefined} text Text.
* @property {string|undefined} textAlign Text alignment.
* @property {string|undefined} textBaseline Text base line.

View File

@@ -13,6 +13,11 @@ ol.style.Text = function(options) {
*/
this.font = options.font;
/**
* @type {number|undefined}
*/
this.rotation = options.rotation;
/**
* @type {string|undefined}
*/