Skip to main content
corrected spelling, fixed grammar, improved formatting.
Source Link
whyzar
  • 12.1k
  • 23
  • 39
  • 72

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]}

...

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]}

...

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]}

...

replaced slang with word, corrected typos, added tag
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

Geoserver 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 thru openlayersthrough 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 jsonJSON 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]}

...

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 thru 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]}

...

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]}

...

Source Link
Calanus
  • 189
  • 8

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 thru 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]}

...