thanks a lot! here it is the code I used:

var save = new OpenLayers.Control.Button({
    title: "Save Changes",
    trigger: function() {
        if(modify.feature) {
            modify.selectControl.unselectAll();
        }
        punti.commit();
        poligoni.commit();
        linee.commit();
    },
    displayClass: "olControlSaveFeatures"
});

how can I apply the same concept to modify and delete functions?

 var modify = new OpenLayers.Control.ModifyFeature(punti, { 
                title: "Modify Feature", 
                                displayClass: "olControlModifyFeature" 
                                });

var deleteControl = new OpenLayers.Control.SelectFeature(point,{
                title: "Delete Feature",
                onSelect: deleteFeature,
                displayClass: "olControlDeleteFeature"
                });

Thanks again!!
ùpaolo


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/how-to-save-three-WFS-layers-into-a-single-save-button-tp5822507p5826146.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to