Skip to main content
2 of 3
replaced slang with word, corrected typos, added tag
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

GeoServer WFS layer loading but not being displayed (OpenLayers 3)

I am trying to load a WFS layer comprised of points. Fiddler shows that data is being returned but it is not being displayed. Does anyone know what I am missing? Is it something to do with it being in OSGB projection?

I have created a fiddle to show my code (with the base layer removed): https://jsfiddle.net/7mm1bges/

It seems that the method of getting WFS data through OpenLayers has evolved over time, so I have opted for the methodology shown here: http://openlayers.org/en/latest/examples/vector-wfs.html

Here is a sample of the JSON data that Fiddler shows is being returned:

{"type":"FeatureCollection",
"totalFeatures":1803,
"features":[{"type":"Feature","id":"EAFloodAlertsWarningCentroids.1",
"geometry":{"type":"Point","coordinates":[339095.07019032,345438.84249476]}

...

Calanus
  • 189
  • 8