I'm working with geoserver and openlayers 3, i have a hosted layer in geoserver that i want display using ol3 as a wfs layer. it doesn't show any errors, but i dont get the map. it works with wms, but not wfs. I'm using wamp server to host my application.
Please can anyone help me to fix that? This is my code :
var v=new ol.layer.Vector({
source: new ol.source.Vector({
format: new ol.format.WFS({
version: '1.1.0',
url: 'http://localhost:8080/geoserver/wfs',
featurePrefix: 'opengeo',
featureType: 'comgeo',
featureNS: 'http://localhost:8080/opengeo',
geometryName: 'geom'
})
})
});
var map = new ol.Map({
target: 'map-id',
layers: [v],
view: new ol.View({
projection: 'EPSG:4326',
center: [0, 0],
zoom: 1
})
});
i read in forums that i need to set proxy, i did that and my proxy works fine, but i dont know how to it use in my code (Openlayers.ProxyHost). When i use firebug, under network/images tab, i can see wms requests, but not for wfs. Thanks in advance.