[OpenLayers-Users] Re: WFS-T not saving [Solved]
Björn Höfling
bjoern.hoefling at gmail.com
Wed Feb 23 01:52:53 EST 2011
I found my mistake after reading again Simon Appelt's post:
2011/2/21 Björn Höfling <bjoern.hoefling at gmail.com>:
> var geom = new OpenLayers.Geometry.Point(x, y);
> var feature = new OpenLayers.Feature.Vector(geom);
> feature.attributes.state = OpenLayers.State.INSERT;
> return feature;
Third line must be:
feature.state = OpenLayers.State.INSERT;
Now it is saving away the new points.
Thanks Simon,
Björn
More information about the Users
mailing list