Skip to main content

Add a WFS style

Define a style that displays third-party data

When adding a layer style, choose Create WFS style to display data from a Web Feature Service.

WFS is an international protocol for serving geographical features across the internet, e.g. places, buildings, rivers, zones. Unlike other map services, WFS provides the data associated with each geographical feature, rather than map images. Alloy can use this data to represent those geographical features as items on the map, which display their full data when selected.

1 Enter URL

This step is required. Fill in the following fields as needed:

  • URL - enter the address of the WFS map service you want to use. Alloy accepts a variety of URL formats, such as:

    https://example.com/services/WFSServer
    https://example.com/services/wfs?
    https://example.com/services/wfs?request=GetCapabilities
  • Version - the version of the WFS protocol used by the service. This can usually be left blank.

Select Next to continue.

The first step of the wizard

2 Set WFS parameters

This step is required. Fill in the following fields as needed:

  • WFS Feature Type * - choose one of the available feature datasets provided by the service.
  • ESPG Code * - the coordinate system used to plot the chosen feature's geometry. If undetected, it will default to 4326, which is the WGS84 Lat/Lng system used internally throughout Alloy (view on epsg.io).
  • Output Format - choose the data format of the chosen feature. If you're unsure, experiment and use the preview button until the expected data appears:

    • GML 3

    • GML 2

    • JSON (default)

    • ESRIJSON

    • KML

  • Load All Items Strategy - if enabled, Alloy will load all the available data items at once. Otherwise, Alloy will only load the data items located within the visible map area.

To check your configuration and see how the data will look on the map, select Preview WFS layer style. When you're done, select the bottom button to return to the wizard.

Select Next to continue.

The second step of the wizard

3 Details

This step is required. Fill in the following fields as needed:

  • Name * - enter a distinct name that clearly identifies the layer style.

  • Colour * - use the colour picker to set the colour of all items displayed by the layer style.

  • Icon * - use the icon picker to set the icon of all items displayed by the layer style.

The third step of the wizard

Example

The WFS layer style illustrated below was created using the following URL:

https://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer

An example WFS layer style showing items loaded from a third-party WFS service
Note

The availability of this WFS service may change over time!