Fix bug in ol.FeatureOverlay

This fixes a major regression introduced by db5b443 (#2028), where the FeatureOverlay won't draw features that do not have an image style.
This commit is contained in:
Éric Lemoine
2014-05-27 16:22:37 +02:00
parent cc1b7cac48
commit afce8e8f5f

View File

@@ -118,6 +118,8 @@ ol.FeatureOverlay.prototype.drawFeature_ = function(vectorContext, feature,
goog.asserts.assert(imageState == ol.style.ImageState.LOADING);
imageStyle.listenImageChange(this.handleImageChange_, this);
}
} else {
vectorContext.drawFeature(feature, style);
}
};