Make setting a fill color optional
This commit is contained in:
@@ -620,7 +620,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} ol.style.FillOptions
|
* @typedef {Object} ol.style.FillOptions
|
||||||
* @property {ol.Color|string} color Color.
|
* @property {ol.Color|string|undefined} color Color.
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ ol.style.Fill = function(options) {
|
|||||||
/**
|
/**
|
||||||
* @type {ol.Color|string}
|
* @type {ol.Color|string}
|
||||||
*/
|
*/
|
||||||
this.color = options.color;
|
this.color = goog.isDef(options.color) ? options.color : null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user