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]; f.setStyle(that.contourStyle(f)) }
picture with all features
not including the last features,show all features without the last one
var fs = cntrLayer.getSource().getFeatures(); for (var i = 0; i < fs.length-1; i++) { f = fs[i]; f.setStyle(that.contourStyle(f)) }
picture without the last one feature
1.4m articles
1.4m replys
5 comments
57.0k users