Get rid of extra style arrays in examples

This commit is contained in:
Tim Schaub
2015-11-11 18:18:41 -07:00
parent e8c99e4e63
commit 99a902a311
19 changed files with 212 additions and 242 deletions

View File

@@ -115,9 +115,9 @@ var vectorLayer = new ol.layer.Vector({
style: function(feature, resolution) {
// hide geoMarker if animation is active
if (animating && feature.get('type') === 'geoMarker') {
return [];
return null;
}
return [styles[feature.get('type')]];
return styles[feature.get('type')];
}
});