I think features is a property of the event featureselected.
what you should do is:
map.someevent.somelayer.
events.register(featureselected, this,
function(e) {
map.someobject = e.feature;
Just to correct my previous post,
features on OpenLayers.Control.GetFeature is a JS Object with the currently
selected features.
feature on event featureselected is the selected feature that triggered
the event.
The GetFeature control will set the property features with the features
selected
Hi all.
If I understood documentation right, features property in GetFeature
Control should fill an object with selected features. I don't know why, but
I get nothing:
map.someobject = {};
map.someevent.somelayer = new OpenLayers.Control.GetFeature({