[OpenLayers-Users] wfs not displaying
Luís de Sousa
luis.a.de.sousa at gmail.com
Mon Mar 8 11:49:15 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). Assuming that there's nothign wrong with the
layer in the server you could try to add the EPSG to the layer constructor:
var wfs2 = new OpenLayers.Layer.WFS(
"myLayer",
"http://myserver:81/geoserver/wfs",
{
typename: 'myLayersNameInTheServer',
srsName: "EPSG:4326"
}
);
If it still doesn't show up then there must be some problem re-projecting
the layer to the map's SRS.
Good luck,
Luís
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/76cbcdc6/attachment.html
More information about the Users
mailing list