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

2320
3
01-12-2016 05:26 AM
MatejSkerjanc
Occasional Contributor

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

Matej

0 Kudos
3 Replies
MatejSkerjanc
Occasional Contributor

I must update my second question the getcapabilities can be just called (and you get the layer names) but the problem of setting up the correct nsLayerName UP INFRONT persists. And how do you add more then just the first one (default behavior).

0 Kudos
mansimittal1
New Contributor II

Any solutions yet?

0 Kudos
MatejSkerjanc
Occasional Contributor

I've not worked with WFS after that, I just finished at that stage with that usability. Sorry

0 Kudos