Skip to main content
What Is a Heat Map? Heat Map vs Choropleth, Compared
Guides

What Is a Heat Map? Heat Map vs Choropleth, Compared

What a heat map is, how it differs from a choropleth, hexbin and dot map, shown with the same 21,943 OpenStreetMap charging stations drawn all four ways.

Brent van der Heiden8 min read
#what is a heat map#heat map#heat map vs choropleth#choropleth map#hexbin map#dot map#data visualization#maplibre#openstreetmap

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:

  1. Every point gets a kernel, a small bump of weight that is highest at the point and fades out over a chosen radius.
  2. The bumps add up. Where many points sit close together, the sum is high.
  3. 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.

Dot map: every stationDot map of the Netherlands with one small blue dot for each of the 21,943 charging stations mapped in OpenStreetMap. Dots merge into solid areas around The Hague, Rotterdam, Utrecht and Amsterdam.
1 dot = 1 station
Heat map: density, 6 km radiusHeat map of the same stations. One red hotspot sits on The Hague and Rotterdam; Amsterdam, Utrecht and Eindhoven show as faint blue patches because the colour scale is set by the single highest density.
lower densityhighest density
Hexbin: stations per 87 km² hexagonHexbin map with 442 hexagons, each 10 km across. The darkest hexagons are around The Hague, Rotterdam and Utrecht, with smaller dark cells at Amsterdam, Eindhoven and Groningen.
1 to 910 to 4950 to 149150 to 399400 or more
Choropleth: stations per 10,000 residentsChoropleth map of the 12 provinces. Zuid-Holland is darkest with 26.6 stations per 10,000 residents, followed by Utrecht and Zeeland. Flevoland, Limburg and Fryslân are lightest.
under 55 to 7.57.5 to 1010 to 2020 or more
OpenStreetMap amenity=charging_station, Netherlands, 29 September 2026 (ODbL). Province boundaries CBS/PDOK 2025, population CBS 1 January 2026. Same 21,943 points in every panel.

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.

ProvinceStations in OSMShare of stationsShare of populationPer 10,000 residents
Zuid-Holland10,33447.1%21.4%26.6
Noord-Holland2,59311.8%16.6%8.6
Utrecht2,47911.3%7.8%17.5
Noord-Brabant2,40811.0%14.8%9.0
Gelderland1,3976.4%12.0%6.4
Overijssel8774.0%6.6%7.3
Limburg4151.9%6.3%3.6
Zeeland3941.8%2.2%10.0
Groningen3581.6%3.3%6.0
Fryslân2831.3%3.7%4.3
Drenthe2651.2%2.8%5.2
Flevoland1320.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 dataThe questionUse
Many individual pointsWhere do they cluster?Heat map, for exploration and interactive maps
Many individual pointsHow many are in each area, in numbers people can compare?Hexbin or square grid
Counts or values per regionWhich region has a higher rate?Choropleth map, normalised by population or area
Totals per regionWhich region has more in absolute terms?Proportional symbol map
Points or counts where every unit mattersWhat 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.

Häufig gestellte Fragen

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.

Hat Ihnen das geholfen? Teilen Sie es.

Über den Autor

Brent van der Heiden

Verfasst von

Brent van der Heiden

Co-Founder & CEO at MapAtlas

Brent built MapAtlas out of a conviction that developers deserve location APIs with fair pricing and genuine end-user privacy. Before that he co-founded MapMetrics, a community mapping and navigation app. He writes about geospatial infrastructure, map data, AI search visibility, and how location data powers the products people rely on every day.

Alle Artikel ansehen →
Zurück zum Blog