UK Supermarkets

Select supermarket retail chain:

Show individual supermarkets:

Number of cells by supermarket
density:
Relative clustering resolution: 0
-2-1012

Clustering with interactive map layers

Interactive map layers offer the capability to retrieve statistical information for the data stored in the layer. This could include information about the values of a property or simply the count of features in the cluster. Interactive map layers support hexagonal and square grid clustering.

The example shows how interactive map layers are used to demonstrate the density of supermarket coverage in the UK. The supermarket retail points are stored in an Interactive Map Layer. The layer is then queried to retrieve the individual points, the density of all supermarkets, and the density of each supermarket chain.

To represent the density, the supermarket data is requested as hexagonal and square grid clusters from the interactive map layer. The returned features represent the cluster cells and include the count of the features inside. The map client displays the cells in a color that represents the density of the supermarkets in it. Brighter cells indicate a bigger number of supermarkets and respectively higher density.

This example uses: Interactive API, OpenLayers

Data source: GEOLYTIX

Source code: GitHub