
Starting today, customers can now cluster tiled data directly via the using recipe features. Developers no longer need to pre-cluster source data or use legacy tools like Tippecanoe to create clustered tilesets. The new clustering capability of MTS makes it easier to consolidate and streamline data pipelines.
Visualize high point count, low zoom level datasets
MTS clustering enables cluster circle and heatmap data visualizations for high point count, low zoom level datasets without dropped or missing features. This makes it easier to avoid hitting layer size limits at lower zoom levels for high-point count datasets. For example, developers can create circle clusters of available parking spots for an entire continent or large country at zoom level 4. Developers could also create a heatmap of the value of their real estate portfolio across the entire United States that¡¯s visible even at zoom level 3, with no missing properties.

Real estate organizations could cluster their national listings database in internal dashboards to help with analysis. Travel planning sites could cluster hotel listings by city or country to give users a bird¡¯s eye view of hotel availability when planning a trip.


recently adopted clustering for their real estate map.
?¡°Displaying over one million real estate properties across Portugal, Spain, Bulgaria, Poland, and other European countries was a complex challenge. The sheer amount of data we process at ¡ª literally gigabytes spanning entire nations¡ªmade map loading, panning, and zooming slow and cumbersome. Without clustering, the experience was far from seamless.¡±
"To solve this, we implemented MTS clustering in just 60 minutes with a quick and effective recipe change. Now, investors using can instantly see, at a glance, the best locations for high-ROI real estate opportunities. Whether it¡¯s properties in Lisbon, Madrid, Sofia, Warsaw, or beyond, the platform empowers them with the speed and insights needed to make smarter investment decisions." -Nikita Navalikhin, Founder,


There are two steps to creating a cluster data visualization using MTS:
Step 1: Cluster data with MTS
To cluster data with MTS:
- Set a
count
feature attribute with a value of 1 for each point - Configure the cluster field in the tiles configuration
Step 1 - Set the count feature attribute
First, add a called count
to the of your MTS recipe. the value of this feature attribute to 1. MTS will sum each point to create the cluster point count.
Step 2 - Union points via clustering
Second, add a to the of the MTS recipe and set cluster
to true
. Use an empty ("group_by": [])
to union all features (e.g., points to be clustered) regardless of their attributes. Set the to the number of clustered points needed for each tile. The region_count
must be a power of 4 between 1 and 16,384, so valid values are 1, 4, 16, 64, 256, 1024, 4096,
or 16384.
Finally, use an to sum the count for each point to create the point count for the cluster. It¡¯s possible to add additional here for other feature attributes to use in clustering or heatmap data visualizations. For example, calculate the total property value for a real estate footprint dataset or the total population for a cities dataset.
Final recipe
The final clustering MTS recipe will look like this:
Step 2: Style clustered data
After , there will be a set of evenly spaced points in the . While these points do not look like clusters yet, the data is structured to enable data-driven styling with just a few additional steps.

To create clusters, use with either a or a . A circle layer creates a traditional cluster map with different-sized and colored circles based on the point count of a cluster. Or use a heatmap layer instead, which uses a range of colors to show density.
The code samples below use ¶¶Òõ¶ÌÊÓÆµ GL JS. and the ¶¶Òõ¶ÌÊÓÆµ Mobile Maps SDKs for and also support creating circle and heatmap layers.
Create a traditional cluster circle layer with data-driven styling

The ¶¶Òõ¶ÌÊÓÆµ GL JS code sample below uses data-driven styling of a circle layer using the point count of the cluster. Clusters with a point count of 2 or less are blue circles with a 3px radius, point counts between 2-10 are yellow circles with a 5px radius, and point counts of 10 or greater are pink circles with a 10 px radius.
Create a heatmap with clustered tileset data

The ¶¶Òõ¶ÌÊÓÆµ GL JS code sample below uses a heatmap layer to display clustered points. The describes in depth how to modify the heatmap paint properties for the data source.
Consistently improving the ¶¶Òõ¶ÌÊÓÆµ Tiling Service
MTS clustering is available today for all MTS customers at no additional cost. Check out the to learn more about MTS.
Clustering is one of many recent improvements to the ¶¶Òõ¶ÌÊÓÆµ Tiling Service, including support for raster data and multi-region architecture for reliability and compliance. Check out the to get started. To learn more about multi-region MTS, email ¶¶Òõ¶ÌÊÓÆµ at mts-multi-region@mapbox.com.?
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Starting today, customers can now cluster tiled data directly via the using recipe features. Developers no longer need to pre-cluster source data or use legacy tools like Tippecanoe to create clustered tilesets. The new clustering capability of MTS makes it easier to consolidate and streamline data pipelines.
Visualize high point count, low zoom level datasets
MTS clustering enables cluster circle and heatmap data visualizations for high point count, low zoom level datasets without dropped or missing features. This makes it easier to avoid hitting layer size limits at lower zoom levels for high-point count datasets. For example, developers can create circle clusters of available parking spots for an entire continent or large country at zoom level 4. Developers could also create a heatmap of the value of their real estate portfolio across the entire United States that¡¯s visible even at zoom level 3, with no missing properties.

Real estate organizations could cluster their national listings database in internal dashboards to help with analysis. Travel planning sites could cluster hotel listings by city or country to give users a bird¡¯s eye view of hotel availability when planning a trip.


recently adopted clustering for their real estate map.
?¡°Displaying over one million real estate properties across Portugal, Spain, Bulgaria, Poland, and other European countries was a complex challenge. The sheer amount of data we process at ¡ª literally gigabytes spanning entire nations¡ªmade map loading, panning, and zooming slow and cumbersome. Without clustering, the experience was far from seamless.¡±
"To solve this, we implemented MTS clustering in just 60 minutes with a quick and effective recipe change. Now, investors using can instantly see, at a glance, the best locations for high-ROI real estate opportunities. Whether it¡¯s properties in Lisbon, Madrid, Sofia, Warsaw, or beyond, the platform empowers them with the speed and insights needed to make smarter investment decisions." -Nikita Navalikhin, Founder,


There are two steps to creating a cluster data visualization using MTS:
Step 1: Cluster data with MTS
To cluster data with MTS:
- Set a
count
feature attribute with a value of 1 for each point - Configure the cluster field in the tiles configuration
Step 1 - Set the count feature attribute
First, add a called count
to the of your MTS recipe. the value of this feature attribute to 1. MTS will sum each point to create the cluster point count.
Step 2 - Union points via clustering
Second, add a to the of the MTS recipe and set cluster
to true
. Use an empty ("group_by": [])
to union all features (e.g., points to be clustered) regardless of their attributes. Set the to the number of clustered points needed for each tile. The region_count
must be a power of 4 between 1 and 16,384, so valid values are 1, 4, 16, 64, 256, 1024, 4096,
or 16384.
Finally, use an to sum the count for each point to create the point count for the cluster. It¡¯s possible to add additional here for other feature attributes to use in clustering or heatmap data visualizations. For example, calculate the total property value for a real estate footprint dataset or the total population for a cities dataset.
Final recipe
The final clustering MTS recipe will look like this:
Step 2: Style clustered data
After , there will be a set of evenly spaced points in the . While these points do not look like clusters yet, the data is structured to enable data-driven styling with just a few additional steps.

To create clusters, use with either a or a . A circle layer creates a traditional cluster map with different-sized and colored circles based on the point count of a cluster. Or use a heatmap layer instead, which uses a range of colors to show density.
The code samples below use ¶¶Òõ¶ÌÊÓÆµ GL JS. and the ¶¶Òõ¶ÌÊÓÆµ Mobile Maps SDKs for and also support creating circle and heatmap layers.
Create a traditional cluster circle layer with data-driven styling

The ¶¶Òõ¶ÌÊÓÆµ GL JS code sample below uses data-driven styling of a circle layer using the point count of the cluster. Clusters with a point count of 2 or less are blue circles with a 3px radius, point counts between 2-10 are yellow circles with a 5px radius, and point counts of 10 or greater are pink circles with a 10 px radius.
Create a heatmap with clustered tileset data

The ¶¶Òõ¶ÌÊÓÆµ GL JS code sample below uses a heatmap layer to display clustered points. The describes in depth how to modify the heatmap paint properties for the data source.
Consistently improving the ¶¶Òõ¶ÌÊÓÆµ Tiling Service
MTS clustering is available today for all MTS customers at no additional cost. Check out the to learn more about MTS.
Clustering is one of many recent improvements to the ¶¶Òõ¶ÌÊÓÆµ Tiling Service, including support for raster data and multi-region architecture for reliability and compliance. Check out the to get started. To learn more about multi-region MTS, email ¶¶Òõ¶ÌÊÓÆµ at mts-multi-region@mapbox.com.?