Re: [OpenLayers-Users] GetFeatures , features property...

2009-11-18 Thread Pedro Baracho
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;

Re: [OpenLayers-Users] GetFeatures , features property...

2009-11-18 Thread Pedro Baracho
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

[OpenLayers-Users] GetFeatures , features property...

2009-11-17 Thread Dragan Podvezanec
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({