[OpenLayers-Users] WFS using OpenLayers.Layer.Vector() fails to render

gingerbbm stuart.jones at jacobs.com
Thu May 13 12:37:38 EDT 2010


OK. I have managed to render my data using OpenLayers.Layer.WFS() but
according to [1] this is deprecated, so I'd really appreciate any hints to
get the Vector() route working.

    var wfslayer = new OpenLayers.Layer.WFS("WFS",
        "http://d2.elgin.gov.uk/geoserver.3/wfs",
        { typeName: "e:NSG_STREET_PUBLIC" },
        {
            typename: "NSG_STREET_PUBLIC",
            featureNS: "http://www.elgin.gov.uk/",
            extractAttributes: true,
            srsName: "EPSG:27700"
        }
    ); 
    map.addLayer(wfslayer); 

[1] http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/WFS-js.html

Thanks
Stuart
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-using-OpenLayers-Layer-Vector-fails-to-render-tp5046572p5046964.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list