Add scale to ol.style.Text

This commit is contained in:
Tom Payne
2014-01-23 02:22:11 +01:00
parent 16d98c5506
commit 0137987015
2 changed files with 15 additions and 0 deletions

View File

@@ -943,6 +943,7 @@
/**
* @typedef {Object} olx.style.TextOptions
* @property {string|undefined} font Font.
* @property {number|undefined} scale Scale.
* @property {number|undefined} rotation Rotation.
* @property {string|undefined} text Text.
* @property {string|undefined} textAlign Text alignment.

View File

@@ -22,6 +22,12 @@ ol.style.Text = function(opt_options) {
*/
this.rotation_ = options.rotation;
/**
* @private
* @type {number|undefined}
*/
this.scale_ = options.scale;
/**
* @private
* @type {string|undefined}
@@ -78,6 +84,14 @@ ol.style.Text.prototype.getRotation = function() {
};
/**
* @return {number|undefined} Scale.
*/
ol.style.Text.prototype.getScale = function() {
return this.scale_;
};
/**
* @return {ol.style.Stroke} Stroke style.
*/