Shouldn't it be ol.layer.Vector here?