with all features,only show the first two features
var fs = cntrLayer.getSource().getFeatures(); for (var i = 0; i < fs.length; i++) { f = fs[i];