Add fill and stroke properties to ol.style.Text
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user