[Users] How to share actions between multiple layers?

Eric Lemoine eric.lemoine at camptocamp.com
Sun May 9 09:30:03 CEST 2010


On Sunday, May 9, 2010, Adam Ratcliffe <adam at prema.co.nz> wrote:
> In my application I have multiple WFS layers that should be editable by the user.  I have added GeoExt actions to the app toolbar for drawing/editing/removing polygons.  Each of these actions wraps an OL control that has a reference to a single layer.  How would I go about creating actions that can be shared by multiple layers?

Hi. Are you using a ModifyFeature control? This control works with one
layer only, so editing multiple layers at the same time isn't really
supported by OpenLayers. At this point I would recommend a design
where the user chooses the layer he or she wants to edit (using a
combo box for example).

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list