On Wednesday, June 3, 2009, Wesley <wesm...@gmail.com> wrote: > Thanks Eric. > > Wich version do I have to use to make the following example code work?
2.8-rc5 or SVN trunk. Try the URL provided in the 2.8 RC5 announcement email. > > I'm getting this error when I use OpenLayers.Strategy.Save and > OpenLayers.Protocol.WFS. > > > code: > wfs = new OpenLayers.Layer.Vector("Editable Features", { > strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], > projection: new OpenLayers.Projection("EPSG:4326"), > protocol: new OpenLayers.Protocol.WFS({ > version: "1.1.0", > srsName: "EPSG:4326", > url: "http://demo.opengeo.org/geoserver/wfs", > featureNS : "http://opengeo.org", > featureType: "restricted", > geometryName: "the_geom", > schema: > "http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=og:restricted" > }) > }); > > > > 2009/6/1 Eric Lemoine <eric.lemo...@camptocamp.com> > > > > On Tuesday, June 2, 2009, Wesley <wesm...@gmail.com> wrote: >> Hi folks, >> >> I'm trying to use the WFS in openlayers, when I add the following code: >> var saveStrategy = new OpenLayers.Strategy.Save(); >> >> I got an error message: " OpenLayers.Strategy.Save is not a constructor". > > You most probably don't use a version of OpenLayers that includes the > strategy. > >> >> it's wrong? >> >> Thanks! >> >> >> > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : eric.lemo...@camptocamp.com > http://www.camptocamp.com > > -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users