Make ol.style.Style a @struct
And take into account that `styles` may be a style or an array of style.
This commit is contained in:
@@ -264,6 +264,9 @@ ol.source.ImageVector.prototype.renderFeature_ = function(feature, resolution, p
|
||||
return false;
|
||||
}
|
||||
var i, ii, loading = false;
|
||||
if (!goog.isArray(styles)) {
|
||||
styles = [styles];
|
||||
}
|
||||
for (i = 0, ii = styles.length; i < ii; ++i) {
|
||||
loading = ol.renderer.vector.renderFeature(
|
||||
replayGroup, feature, styles[i],
|
||||
|
||||
Reference in New Issue
Block a user