[OpenLayers-Users] Multilinestring layer display like a rectangle

ntfstr ntfstr at gmail.com
Thu Jul 4 07:24:56 PDT 2013


Hello,


I am developing map application with openlayers and geoext.

On  geoserver i see my road lines layer properly. When i add layer to my
application via WFS  i see my lines like this.

http://s18.postimg.org/n3nubtts9/road.png

My geoserver layer EPSG code is 4326.

How can i display properly via WFS

Thanks in advance.


Example code:


   var layer = new OpenLayers.Layer.Vector("Lines", {
  strategies: [new OpenLayers.Strategy.BBOX()],
  protocol: new OpenLayers.Protocol.WFS({
url: "/geoserver/ows",
version: "1.1.0",
featureType: "roads",
featureNS: "http://roads",
  srsName: "EPSG:4326",
 maxFeatures:300,
geometryName:"geom"
  })
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130704/413cddc9/attachment.html>


More information about the Users mailing list