On Friday, December 10, 2010, snuffer892 <[email protected]> wrote:
>
> Hello everyone,
> I have three WFS layer (one for points, one for lines and one for polygons);
> The code that saves the data is:
>
> var save = new OpenLayers.Control.Button ({
>                 trigger: OpenLayers.Function.bind (point.commit point)
>                 displayClass "olControlSaveFeatures"
>             });
>
> How can I integrate into a single save button all three layers?

Your trigger func could look like:

    trigger: function() {
        layer1.commit();
        layer2.commit();
        layer3.commit();
     }

-- 
Eric Lemoine

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

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to