[OpenLayers-Dev] editing controls, preserve selection

Cameron Shorter cameron.shorter at gmail.com
Wed Aug 22 17:02:43 EDT 2007


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
> Dev at openlayers.org
> 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




More information about the Dev mailing list