What is the exact API to get all features in a vector layer in OpenLayers? Suppose I have the "map" object, within which is a "Vector Layer": how can I obtain features in the layer?
As far as I can tell, it's not part of the vector layer api OpenLayers -Vector-js.html.
vector_layer.features should do the trick, though. This is an array maintained by the layer, which saves references to each geometry it contains.