Add rotation property to ol.style.Text
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -13,6 +13,11 @@ ol.style.Text = function(options) {
|
||||
*/
|
||||
this.font = options.font;
|
||||
|
||||
/**
|
||||
* @type {number|undefined}
|
||||
*/
|
||||
this.rotation = options.rotation;
|
||||
|
||||
/**
|
||||
* @type {string|undefined}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user