[OpenLayers-Users] Move selected Features to another geometry layer

vGIS valentino1s73s at gmx.net
Thu Sep 20 06:01:53 PDT 2012


Hi, thanks for your reply!

Code:		
                 function cmd_Poly_add() {
			var features = wfs_polygon.selectedFeatures;
			wfs_polygon.removeFeatures(features);
			features.geometry = new
OpenLayers.Geometry.MultiLineString(features.geometry);
			features.state = OpenLayers.State.INSERT;
			wfs_mpolygon.addFeatures(features);
		}

When I call the function the chosen featurers disappear, but don't appear on
the other layer (wfs_mpolygon). When the save strategy is called (WFS-data
viewed with FireBug), there appear neither inserted, updated nor deleted
features (XML POST/GET).

Kind regards,
vGIS



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Move-selected-Features-to-another-geometry-layer-tp5003226p5003233.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list