Chapter 3. Creating Heatmaps and Choropleth Maps

In the first two chapters, you learned how to make a map and add points, lines, polygons, and even GeoJSON. Now, you will use these skills to create two types of thematic maps: heatmaps and choropleth maps. These maps show you concentrations of points or statistical variables using two different styles of representations.

In this chapter, we will cover the following topics:

  • What is a heatmap?
  • How do I create a heatmap?
  • What is a choropleth map?
  • How do I create a choropleth map?

What is a heatmap?

A heatmap is a color-coded grid added to a map. The colors usually range from cool colors, such as blue, to hot colors, such as yellow, orange, and red. Heatmaps represent point data in one of two ways: density ...

Get Leaflet.js Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.