I have tried with different setups and formats, but no success.
With firebug, I can see that the json data is loaded, but nothing shows up on the map.
Have anyone experience with geoserver and wfs in openlayers 3?
var layer_ojd_vector = new ol.layer.Vector({
source: new ol.source.Vector({
parser: new ol.parser.GeoJSON(),
url: http://SERVER:8080/geoserver/NS/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=NS:LAYER&maxFeatures=50&outputFormat=json
}),
style: new ol.style.Style({rules: [
new ol.style.Rule({
filter: 'geometryType("point")',
symbolizers: [
new ol.style.Shape({
fillColor: '#013',
size: 40
})
]
})
]})
});