Visualizing WFS data on a map requires two steps:

  1. Create a FeatureModel with a WFSFeatureStore by connecting to a WFS service.

  2. Use a FeatureLayer to visualize the model.

WFSFeatureStore.createFromURL("", "usrivers")
    .then(function(store) {
      //Create a model for the store
      const model = new FeatureModel(store);
      //Create a layer for the model
      const layer = new FeatureLayer(model);
      //Add the model to the map