Get rid of extra style arrays in examples
This commit is contained in:
@@ -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')];
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user