I have a problem with OL3 and it's ol.interaction.Modify Event. Whenever I modify a feature, just one, it returns all features inside the layer. Currently I have 77 features (polygons) and I can modify them with the modify interaction. Inside the callback function it returns the event with the feature member array and this seems to be buggy:
modify.on('modifyend', function(e) {
console.log('=== Modify end ===');
var modifiedFeature = e.features.item(0);
//Why do I get 77 modified features if I have only touched one?
// e.features size is = 77
console.log(e.features);
});
Do you know a working way to get the one modified feature?