[OpenLayers-Users] Save Strategy

Eric Lemoine eric.lemoine at camptocamp.com
Wed Jun 3 00:11:46 EDT 2009


On Wednesday, June 3, 2009, Wesley <wesmota at 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.lemoine at camptocamp.com>
>
>
>
> On Tuesday, June 2, 2009, Wesley <wesmota at 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.lemoine at 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.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list