我建议首先得到视图的范围:
var extent = yourMap.getView().calculateExtent(yourMmap.getSize());
然后获得此范围内的所有功能:
yourVectorSource.forEachFeatureInExtent(extent, function(feature){ // do something });