Creating a heat map

The Google Maps API lays the foundation for several map-based analysis, including heat maps. A heat map is a form of visualization that shows the concentration of points through gradient color scales.

Points, in this respect, may be the representation of any geographically represented items such as hospitals, houses, schools, measured values of sea pollution tagged with coordinates, the location of waste collection bins, and so on. The list is practically infinite.

Heat maps are very important inputs for geostatistics. In a map display, you capture the intensity in a moment compared to the sole display of the locations of points:

The preceding screenshot depicts the location of the OpenStreetMap points layer in İstanbul, Turkey, ...

Get Google Maps JavaScript API Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.