[OpenLayers-Users] wfs not displaying

Luís de Sousa luis.a.de.sousa at gmail.com
Mon Mar 8 11:45:37 EST 2010


HI again,

Indeed it seems that the request is for a region that doesn't exist in the
server (due to the wrong SRS). Try to add the EPSG to the layer constructor:

var wfs2 = new OpenLayers.Layer.WFS(
                "myLayer",
                "http://myserver:81/geoserver/wfs",
                {
                 typename: 'myLayersNameInTheServer',

                }
            );



2010/3/8 Sarah Schuessler <sarah_flip at yahoo.de>

> Hi,
>
> thanks for your suggestion!
> Name of the layer is correct. I use featureType: "mylayer" (without prefix)
> and/or typename: "gn:mylayer" but neither worked.
> Firebug gave me:
>  gml:boundedby ><gml:null>unknown</gml:null>
> I think because of different EPSG/coordinates. But don´t know how to manage
> best way.
>
> best regards
> Sarah
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100308/9f360c01/attachment.html


More information about the Users mailing list