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
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).
Any solutions yet?
I've not worked with WFS after that, I just finished at that stage with that usability. Sorry