[OpenLayers-Users] Move selected Features to another geometry layer
vGIS
valentino1s73s at gmx.net
Thu Sep 20 06:03:36 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.MultiPolygon(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-tp5003226p5003236.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list