How to add a polygon reference layer to the map

The reference layer feature provides a way to consistently display administrative polygons/boundaries (e.g. LSOAs, wards, etc.) regardless of how point data is filtered on the page.

Custom geometry

The reference layer feature can be found under the Visualisations pane > Format Visual > Reference Layer Settings

For a reference layer to be generated, the relevant GSS codes need to be input into the ‘GSS Codes for Reference Layer’ text box.

GSS codes can be copied and pasted directly from a spreadsheet into the text box, and it will automatically work.

Reference layer pane showing GSS codes added to a diague
A screenshot of the Reference Layer pane

Once the codes have been input, the visual should update after a few seconds with the relevant polygons displayed on the map as a reference layer that is not linked to any other data used in the visual.

Good to know

You can then style the reference layer features using the appropriate dropdown under the Symbology Settings pane:

A screenshot of the symbology settings pane showing colour, opacity, and border thickness settings applied to the Reference Layer
Symbology settings pane

Note that if you are using GSS codes to populate the map's Feature Layer using ONS geographies, the codes that are entered into the Reference Layer dialog will be compared to the codes which are currently displayed in the Feature Layer, and any polygons which are currently being shown in the Feature Layer will not also be displayed in the Reference Layer.

This allows you to create a background in the reference layer which continually updates as slicers / filters are applied to the Feature Layer. However this only works for codes that match exactly; geographies from different overlapping datasets (e.g. MSOA vs LSOA) will not be compared and updated in this way.

Historic ONS GSS codes

Not all types of GSS code are necessarily supported for the reference layer. The visual makes use of services that are published in the ONS Open Geography Portal.

These are subject to change from time to time by ONS. The visual may be reconfigured to show new services as we are made aware of them. The table in the FAQs tab of the "Getting Started" dialog tells you which codes are currently supported.

The visual will only support the latest version of geometries for any particular code type. Historic codes are unfortunately NOT supported at this time.

Last updated

Was this helpful?