From 3655d15f61015f464febf818d1a57b03c1711a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 21 Nov 2013 14:38:13 +0100 Subject: [PATCH] Make setting a fill color optional --- src/objectliterals.jsdoc | 2 +- src/ol/style/fillstyle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 41930724ac..722358a6ce 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -620,7 +620,7 @@ /** * @typedef {Object} ol.style.FillOptions - * @property {ol.Color|string} color Color. + * @property {ol.Color|string|undefined} color Color. * @todo stability experimental */ diff --git a/src/ol/style/fillstyle.js b/src/ol/style/fillstyle.js index 5c6a040da5..38269f5c3a 100644 --- a/src/ol/style/fillstyle.js +++ b/src/ol/style/fillstyle.js @@ -13,7 +13,7 @@ ol.style.Fill = function(options) { /** * @type {ol.Color|string} */ - this.color = options.color; + this.color = goog.isDef(options.color) ? options.color : null; };