[OpenLayers-Users] Custom save values - WFS
giraam
sdjbm17 at gmail.com
Mon Jun 21 12:28:46 EDT 2010
Hi people,
I've looking at OL class documentation (has a save function but with no
parameter!) and searched for examples about how to customize my save and
found nothing
I'm having a point WFS layer like this:
function saveSuccess(event) {
alert('Cambios guardados');
}
function saveFail(event) {
alert('Error! Cambios no guardados');
}
var saveStrategy = new OpenLayers.Strategy.Save();
saveStrategy.events.register('success', null, saveSuccess);
saveStrategy.events.register('fail', null, saveFail);
pdv_nuevo = new OpenLayers.Layer.Vector("Puntos de Venta Nuevo", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection("EPSG:4326"),
styleMap: myStyles,
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:4326",
url: "http://server:8080/geoserver/wfs",
featureType: "pdv_nuevo",
outputFormat: "json",
readFormat: new OpenLayers.Format.GeoJSON(),
schema:
"http://server:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=GestionComercial:pdv_nuevo",
featureNS: "http://server:8080/geoserver/wfs",
featurePrefix: "GestionComercial"
})
});
I willing to add the point as is working now but adding a custom value to a
column!
Thank you very much for your time and help! =)
-----
just another web developer
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Custom-save-values-WFS-tp5205068p5205068.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list