WFS Utils
This sample shows how you can use the wfsUtils class to browse FeatureTypes in the WFS service before adding them to your map. To do this, we use wfsUtils.getCapabilities, which executes the GetCapabilities request on the WFS service and returns the feature types.
About this sample
This GeoBlazor Pro sample, written in Blazor for .NET developers, demonstrates browsing and consuming OGC Web Feature Services from the ArcGIS Maps SDK for JavaScript exposed through GeoBlazor Pro's WfsUtils service together with the WFSLayer, LayerListWidget, and PopupWidget Razor components. The page shows a 2D light-gray basemap centered on the United Kingdom. A panel pinned in the upper-right corner contains a labeled OGC WFS endpoint, a text input prefilled with the UK Office for National Statistics counties WFS URL, and a Get Capabilities button. Clicking the button calls WfsUtils.GetCapabilities to issue a GetCapabilities request and renders the returned feature types as a clickable list, with a calcite-loader shown during fetch and a warning notice if the service does not support WFS 2.0.0 with GeoJSON output. Selecting a feature type adds it to the map as a WFSLayer and zooms to its extent. The sample is intended to demonstrate runtime discovery of WFS feature types and dynamic layer addition.