AnsweredAssumed Answered

WFS layer - question regarding layers (from the wfs service)

Question asked by detroit on Jan 12, 2016
Latest reply on Feb 6, 2017 by detroit

Hello guys

I've added a WFS service to the map (according to Samples | ArcGIS API for JavaScript )

Now i'm stuck with defining the "nsLayerName". I have no clue where to read it from. If i dont define it, it loads just the first layer. Where do i read this from? From the wfs definition? What is the field/property name and how do i define this in the nsLayerName. The WFSLayer | API Reference | ArcGIS API for JavaScript is in beta, thus too vague to decypher anything from it.


Furthermore how could one dynamically create the nsLayerName without knowing the layers from the service. Maybe by parsing through the xhrget of getCapabilities?


Thank you


Best regards