Im trying to add the features i get from a WFS query using the WFS protocol. But something doesnt work.
I have looked at other post with people having similar problems, but their solution dont fit me.
I have tried:
var gmlReader = new OpenLayers.Format.GML({ extractAttributes: true });var features = gmlReader.read(evtResponse.responseText);markerVectorLayer.addFeatures([features])But then i recieve a error:
TypeError: a is undefined
...b.push(d)}return b},parseFeature:function(a){for(var b="MultiPolygon Polygon Mul...
OpenLayers.2.13.1.js (line 380)
when i use console.log to check the features it looks like a perfect FeatureCollection object.
If i loop the response and create polygon from the coordinate points it works, but the performance isn't functional.
What am I doing wrong?
أكثر...
I have looked at other post with people having similar problems, but their solution dont fit me.
I have tried:
var gmlReader = new OpenLayers.Format.GML({ extractAttributes: true });var features = gmlReader.read(evtResponse.responseText);markerVectorLayer.addFeatures([features])But then i recieve a error:
TypeError: a is undefined
...b.push(d)}return b},parseFeature:function(a){for(var b="MultiPolygon Polygon Mul...
OpenLayers.2.13.1.js (line 380)
when i use console.log to check the features it looks like a perfect FeatureCollection object.
If i loop the response and create polygon from the coordinate points it works, but the performance isn't functional.
What am I doing wrong?
أكثر...