Add new tests for FeatureOverlay

In the process of creating these tests, a bug with setting this._style
was also fixed.
This commit is contained in:
Andreas Hocevar
2014-06-27 11:46:47 +02:00
parent 1551e6e7ff
commit 2171c92b5c
2 changed files with 35 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ ol.FeatureOverlay = function(opt_options) {
* @private
* @type {ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction}
*/
this.style_ = null;
this.style_ = goog.isDef(options.style) ? options.style : null;
/**
* @private