I've got various vector layers on a OL map. On one layer I have a few draw controls. If I draw a polygon I can select it (the whole pop-up thing works). This also works for all the other features. Then I use the modify control to reshape the polygon. When I complete this action (with a clickout) I catch the afterfeaturemodified event and disable the modify control, re enable the selectcontrol for the map.
Now the problem occurs. The clickHandler of the selectControl cannot get the modified feature from the event. I used drawlayer.layer.getfeaturefromevent(event). The weird thing is, this does work for all the other features that er still on the map. Doing things like:
drawlayer.layer.refresh();
or
drawlayer.layer.redraw();
doesn't help. I use the infoWindow for a form that actually saves the modified feature, so I need this to work. Also, I can't use the modify control more then once on the same feature. Which is also very annoying from a usuability point of view. If I look at the DOM, the drawLayer still has just one feature.
I've got no idea how to solve this. Any help would be nice.