Add fill and stroke properties to ol.style.Text

This commit is contained in:
Frederic Junod
2013-12-02 11:05:24 +01:00
parent 1bf2d94968
commit c36920774a
2 changed files with 12 additions and 0 deletions

View File

@@ -661,6 +661,8 @@
* @property {string|undefined} text Text.
* @property {string|undefined} textAlign Text alignment.
* @property {string|undefined} textBaseline Text base line.
* @property {ol.style.Fill|undefined} fill Fill style.
* @property {ol.style.Stroke|undefined} stroke Stroke style.
* @todo stability experimental
*/

View File

@@ -32,6 +32,16 @@ ol.style.Text = function(options) {
* @type {string|undefined}
*/
this.textBaseline = options.textBaseline;
/**
* @type {ol.style.Fill}
*/
this.fill = goog.isDef(options.fill) ? options.fill : null;
/**
* @type {ol.style.Stroke}
*/
this.stroke = goog.isDef(options.stroke) ? options.stroke : null;
};