Make setting a fill color optional

This commit is contained in:
Éric Lemoine
2013-11-21 14:38:13 +01:00
parent 9396df54c3
commit 3655d15f61
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
*/ */
+1 -1
View File
@@ -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;
}; };