Pierre, I suspect that for some controls it makes sense to deselect a feature when you change controls, and for others (like yours) it doesn't make sense. So it probably should be a flag a control should set. (I haven't looked into the code to see where this should happen).
Pierre GIRAUD wrote: > Hello all, > > Recently I worked on Tim's code to enhance the editing functionnalities. > > The result can be seen in the camptocamp/feature sandbox. > > I'm now facing an little issue. What is frustrating for the user is > that each time he switches between the two different editing controls > (modifyFeature and deleteVertex), the current selection is lost. The > user need to reselect a feature so that he can modify it. > > The problem is that when a control is deactivated, the select control > it relies on is also deactivate and the selectFeature.unselect() > method is called. > > Does someone has an idea of a workaround to let a control preserve > selection so that another control can use it ? > > Regards > > Pierre > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > > -- Cameron Shorter Systems Architect, http://lisasoft.com.au Tel: +61 (0)2 8570 5050 Mob: +61 (0)419 142 254 _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
