[OpenLayers-Dev] how to store feature info using WFS-T
Andreas Hocevar
ahocevar at opengeo.org
Wed Sep 16 02:15:58 EDT 2009
Hi,
look at the source code of
http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html.
The easiest way to edit the name is to register a handler for the
layer's featureadded and featuremodified events. So you could add the
following code at the end of the init function:
var setName = function(evt) {
var attr = evt.feature.attributes;
attr.name = prompt("Set the name for the feature", attr.name || "");
}
wfs.on({
featureadded: setName,
featuremodified: setName
});
Regards,
Andreas.
pnguwe wrote:
> Dear All,
>
> I have a table like this:
> Cities:
> gid
> name
> the_geom
>
> Is there any body know how to store name information using WFS-T? If so,
> could you share the URL?
>
> thanks in advance.
>
> best regards,
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Dev
mailing list