Open Troelshjarne opened 3 years ago
We use geoserver as server example and it always returns gml response with targetNamespace attribute. Your server answer doesn't contain this attribute. Which gis-server hosts your wfs data? Can you add attribute targetNamespace to server response?
Thank you for your reply.
We are using MapServer,unfortunately adding targetNamespace is not an option.
Do you by any chance have some boilerplate code that would work with for my API?
Im trying to show Point features from a WFS :
https://api.dataforsyningen.dk/forvaltning2?token=9ca510be3c4eca89b1333cadbaa60c36&servicename=forvaltning2&SERVICE=WFS&REQUEST=Getfeature&VERSION=1.1.0&TYPENAMES=forvaltning:togstation&TYPENAME=forvaltning:togstation&STARTINDEX=0&COUNT=100000&SRSNAME=urn:ogc:def:crs:EPSG::25832
ERROR
But im getting this error - TypeError: undefined is not an object (evaluating 'featureInfo.attributes.targetNamespace.value')
Response
In the console I can see that the Response is 200 (ok)
WFS Layer
The entire code :
thank you in advance