Hi, I'm new in GIS and now trying to do my work with GeoServer + OpenLayers mainly focusing on WFS-T. Since last week, I've faced a problem about WFS layer due to it doesn't display as I expect. I've tried to search for the solution to this problem and tried to change my code based on the answers I've found but it's still doesn't help.
it doesn't work when I use >> OpenLayers.Layer.Vector ------------------------------------------------------- var saveStrategy = new OpenLayers.Strategy.Save(); var point = new OpenLayers.Layer.Vector("Points - OL_Vector", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:32632"), protocol: new OpenLayers.Protocol.WFS({ url: "/geoserver/wfs", featureType: "opp:city_point", srsName: "EPSG:32632", featureNS : "http://www.opp.com/city" }) }); ------------------------------------------------------- but it works when I use >> OpenLayers.Layer.WFS ------------------------------------------------------- var pntwfs = new OpenLayers.Layer.WFS( "Points - OL_WFS", "/geoserver/wfs", { typeName: "opp:city_point"}, { typename: "city_point", featureNS: "http://www.opp.com/city", extractAttributes: true, srsName: "EPSG:32632" }, {'reproject':true} ); ------------------------------------------------------- Btw, when I tried to use OpenLayers.Layer.Vector with Tasmania data, it works fine. Really have no idea what to do next.. Your suggestions will be greatly appreciated. Thank you very much. -- View this message in context: http://n2.nabble.com/WFS-layer-not-display-tp4660996p4660996.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users