A heat map shows where points are packed together. Each point adds a little colour to its surroundings, the colour builds up where points cluster, and the result is a smooth surface from cool to hot. A choropleth map answers a different question: it fills each region, such as a province or a postcode area, with one colour for one value.
Both are called heat maps in everyday use, and picking the wrong one produces a map that looks convincing and says little. To show the difference, we took one dataset, the 21,943 electric vehicle charging stations mapped in OpenStreetMap in the Netherlands on 29 September 2026, and drew it four ways.
What is a heat map?
In mapping, a heat map is a density surface built from points. The standard method is kernel density estimation:
- Every point gets a kernel, a small bump of weight that is highest at the point and fades out over a chosen radius.
- The bumps add up. Where many points sit close together, the sum is high.
- Colour shows the sum, typically from transparent or blue at low density to red at the highest density in view.
The output has no borders and no fixed unit. It tells you where points are concentrated relative to each other, which makes it a good first look at a large point dataset.
The same term is used for two unrelated charts. In a spreadsheet or dashboard, a heat map is a table whose cells are coloured by value. In web analytics, it is a map of where visitors click or scroll on a page. This article is about the geographic kind.
One dataset, four maps
The figure shows the same points as a dot map, a heat map with a 6 km kernel, a hexbin map with 10 km hexagons, and a choropleth of the 12 provinces.




The four panels tell four different stories.
The dot map shows every record. Dots merge into solid areas around The Hague, Rotterdam, Utrecht and Amsterdam, and scatter thinly over the north and east. It hides nothing, but in the dense areas you can no longer count.
The heat map shows one hotspot. The peak sits 2.3 km from the centre of The Hague. Only 0.51 percent of the panel reaches half of the peak density, so every other city, including Amsterdam, shows as a faint patch. This is the typical behaviour of a heat map coloured relative to its maximum: the single densest spot sets the scale for everything else.
The hexbin map shows counts you can read. 442 hexagons of 86.6 km² each contain at least one station. The fullest one, near The Hague, holds 2,448. The median hexagon holds 8. The 45 fullest hexagons, 10 percent of the occupied cells, hold 75.7 percent of all stations.
The choropleth shows a rate per province. Zuid-Holland has 26.6 stations per 10,000 residents against a national figure of 12.1. Utrecht follows with 17.5. Flevoland has the lowest rate, 2.9.
| Province | Stations in OSM | Share of stations | Share of population | Per 10,000 residents |
|---|---|---|---|---|
| Zuid-Holland | 10,334 | 47.1% | 21.4% | 26.6 |
| Noord-Holland | 2,593 | 11.8% | 16.6% | 8.6 |
| Utrecht | 2,479 | 11.3% | 7.8% | 17.5 |
| Noord-Brabant | 2,408 | 11.0% | 14.8% | 9.0 |
| Gelderland | 1,397 | 6.4% | 12.0% | 6.4 |
| Overijssel | 877 | 4.0% | 6.6% | 7.3 |
| Limburg | 415 | 1.9% | 6.3% | 3.6 |
| Zeeland | 394 | 1.8% | 2.2% | 10.0 |
| Groningen | 358 | 1.6% | 3.3% | 6.0 |
| Fryslân | 283 | 1.3% | 3.7% | 4.3 |
| Drenthe | 265 | 1.2% | 2.8% | 5.2 |
| Flevoland | 132 | 0.6% | 2.6% | 2.9 |
What the maps are really showing
All four maps agree on one surprise: Zuid-Holland holds 47.1 percent of the stations mapped in OpenStreetMap with 21.4 percent of the population. Within 8 km of the centre of The Hague we count 3,928 stations; within 8 km of Amsterdam's centre, 1,180, although Amsterdam is the larger city.
We have not compared these numbers with an official register of charge points, so we cannot say how much of the gap is real infrastructure and how much is uneven mapping. The pattern suggests the second: volunteers in some municipalities have mapped chargers street by street, and in others they have not. A heat map of this data is, first of all, a map of where the data was collected.
That applies to every map type, and it is the most useful lesson from the comparison. The map shows your dataset faithfully, including its gaps. The dot map makes coverage problems easiest to spot, because empty areas look empty instead of cool.
Heat map vs choropleth: how to choose
The deciding question is what your data is and what the reader should do with the map.
| Your data | The question | Use |
|---|---|---|
| Many individual points | Where do they cluster? | Heat map, for exploration and interactive maps |
| Many individual points | How many are in each area, in numbers people can compare? | Hexbin or square grid |
| Counts or values per region | Which region has a higher rate? | Choropleth map, normalised by population or area |
| Totals per region | Which region has more in absolute terms? | Proportional symbol map |
| Points or counts where every unit matters | What does the distribution look like? | Dot map or dot density map |
Three rules follow from the comparison.
Normalise a choropleth. Colouring provinces by raw station counts would make large, populous provinces look important simply because they are large. A rate such as stations per 10,000 residents, or per km² using the area of each region, is what a choropleth is built to show.
Treat the heat map radius as a parameter, and publish it. With a 2 km kernel, only 0.09 percent of our panel reaches half of the peak density; with a 20 km kernel, 3.07 percent does. The peak stays in The Hague in all three versions, but the shape of everything around it changes. In MapLibre the heatmap-radius property is set in screen pixels, 30 by default according to the MapLibre style specification, so the same layer covers a different ground distance at every zoom level.
Use bins when readers need numbers. A heat map has no readable unit. If the caption needs to say "400 or more stations in this area", draw a hexbin or a grid.
The thematic map guide covers the rest of the family, from isolines to cartograms.
Building each one in MapLibre
A heat map and a choropleth are two different layer types on two different kinds of source. The heat map reads points:
map.addSource('chargers', { type: 'geojson', data: '/data/charging-stations.geojson' });
map.addLayer({
id: 'chargers-heat',
type: 'heatmap',
source: 'chargers',
paint: {
// Radius is in screen pixels: grow it with zoom so a kernel keeps a similar ground size.
'heatmap-radius': ['interpolate', ['exponential', 2], ['zoom'], 6, 4, 12, 64],
'heatmap-color': [
'interpolate', ['linear'], ['heatmap-density'],
0, 'rgba(33,102,172,0)', 0.2, '#67a9cf', 0.4, '#d1e5f0',
0.6, '#fddbc7', 0.8, '#ef8a62', 1, '#b2182b',
],
'heatmap-opacity': 0.85,
},
});
The choropleth reads polygons that already carry a rate:
map.addSource('provinces', { type: 'geojson', data: '/data/provinces-with-rate.geojson' });
map.addLayer({
id: 'provinces-rate',
type: 'fill',
source: 'provinces',
paint: {
// Five classes of stations per 10,000 residents, as in the figure.
'fill-color': [
'step', ['get', 'per10k'],
'#dbe8f5', 5, '#a9c8e6', 7.5, '#6fa3d2', 10, '#3a78b8', 20, '#0f4d8f',
],
'fill-outline-color': '#ffffff',
},
});
The expensive part of a choropleth is the data preparation: counting points per region with a point-in-polygon test and joining a population table on the region code. The JavaScript heatmap tutorial covers weights, intensity and colour ramps for the heat map layer in more depth.
Method. Points: every amenity=charging_station node and way (way centre) inside the Netherlands in OpenStreetMap, fetched through the Overpass API on 29 September 2026 (data as of 22:03 UTC), ODbL. One point per mapped station; 17,028 of them carry a capacity tag, together 40,875 charge points; the maps count each station once, whatever its capacity. Province boundaries: CBS generalised provinces 2025 via PDOK. Population: CBS StatLine table 03759ned, 1 January 2026, 18,130,208 in total. 8 stations on the coast or border fall outside the generalised province outlines and are left out of the choropleth only. Heat map: Gaussian kernel with a 6 km standard deviation, normalised to the maximum. Hexbin: flat-top hexagons 10 km across. The script is scripts/seo/blog-keyword-research/heat-map-vs-choropleth.mjs, with the output in docs/blog-keyword-research/heat-map-vs-choropleth-2026-09-29.json.
Where MapAtlas fits
Every map in this article needs the same two ingredients: a base map and clean regions to count into. The Dynamic Maps API serves EU-hosted vector tiles for MapLibre, with the heatmap, fill and circle layers used above. Reverse geocoding with the Geocoding API returns the locality and region for a coordinate, which covers the point-in-polygon step behind a choropleth when your points arrive one at a time.
Domande frequenti
What is a heat map?
On a map, a heat map is a continuous colour surface that shows how densely points are packed. Each point spreads a small amount of weight over its surroundings, the weights add up, and colour shows the total, usually from cool blue for sparse areas to red for the densest spot. The term is also used for two other things: a table whose cells are coloured by value, as in a spreadsheet, and a website click map.
What is the difference between a heat map and a choropleth map?
A heat map starts from individual points and draws their density as a smooth surface that ignores administrative boundaries. A choropleth map starts from regions, such as provinces or postcodes, and fills each region with one colour for one value, ideally a rate such as stations per 10,000 residents. Use a heat map to find where points cluster; use a choropleth to compare regions.
When should you use a hexbin map instead of a heat map?
Use a hexbin map when readers need counts they can read and compare. A hexbin groups points into equal-sized hexagons and colours each by the number of points inside, so a legend can say 150 to 399 stations per cell. A heat map is smoother but has no readable unit, and its appearance depends on the chosen radius.
Why do heat maps often just show where people live?
Because most point datasets, such as shops, chargers, calls or incidents, grow with population, and a heat map shows raw density. The densest areas are almost always the big cities. To see whether an area has more than expected, divide by population or area and draw a choropleth, or weight each point before building the heat map.

