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
+10
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;
};