<div dir="ltr">Hello,<div><br></div><div><br></div><div style>I am developing map application with openlayers and geoext.</div><div style><br></div><div style>On geoserver i see my road lines layer properly. When i add layer to my application via WFS i see my lines like this.</div>
<div style><br></div><div style><a href="http://s18.postimg.org/n3nubtts9/road.png">http://s18.postimg.org/n3nubtts9/road.png</a><br></div><div style><br></div><div style>My geoserver layer EPSG code is 4326.</div><div style>
<br></div><div style>How can i display properly via WFS</div><div style><br></div><div style>Thanks in advance.</div><div style><br></div><div style><br></div><div style>Example code:</div><div style><br></div><div style>
<br></div><div style><div><span class="" style="white-space:pre"> </span> var layer = new OpenLayers.Layer.Vector("Lines", {</div><div><span class="" style="white-space:pre"> </span> strategies: [new OpenLayers.Strategy.BBOX()],</div>
<div><span class="" style="white-space:pre"> </span> protocol: new OpenLayers.Protocol.WFS({</div><div><span class="" style="white-space:pre"> </span>url: "/geoserver/ows",</div><div><span class="" style="white-space:pre"> </span>version: "1.1.0",</div>
<div><span class="" style="white-space:pre"> </span>featureType: "roads",</div><div><span class="" style="white-space:pre"> </span>featureNS: "<a href="http://roads">http://roads</a>",</div><div>
<span class="" style="white-space:pre"> </span> srsName: "EPSG:4326",</div><div><span class="" style="white-space:pre"> </span> maxFeatures:300,</div><div><span class="" style="white-space:pre"> </span>geometryName:"geom" </div>
<div><span class="" style="white-space:pre"> </span></div><div><span class="" style="white-space:pre"> </span> })</div><div><span class="" style="white-space:pre"> </span>});</div></div></div>