The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences
Download
Publications Copernicus
Download
Citation
Articles | Volume XLVIII-4/W12-2024
https://doi.org/10.5194/isprs-archives-XLVIII-4-W12-2024-3-2024
https://doi.org/10.5194/isprs-archives-XLVIII-4-W12-2024-3-2024
20 Jun 2024
 | 20 Jun 2024

Beautiful thematic maps in Leaflet with automatic data classification

Dániel Balla and Mátyás Gede

Keywords: thematic maps, data classification, symbology, Leaflet, web cartography, open source

Abstract. Even though the web is a platform that provides lots of features, interactivity, and a high degree of customizability for creating web maps, web-based thematic maps still require expertise to visualize geospatial data in a way that highlights spatial differences and is cartographically comprehensive. The popular open-source web mapping library Leaflet lacks a straightforward approach to create thematic maps with basic principles they should adhere to (data classification, automatic symbology and legend generation). Although various tutorials and workarounds exist, those are hard-coded, only solve some principles thematic maps require and are complex to accomplish, requiring programming experience. The paper focuses on finding a way to overcome shortcomings of Leaflet in terms of thematic maps, that supports a simple, self-explanatory method of producing thematic web maps using the library. As a solution, this paper introduces an easy-to-use, open-source plugin for Leaflet, developed by the authors, which combines all processes required for creating a thematic map from a GeoJSON dataset, in one single step. For symbology, it supports graduated symbol colours and sizes, and colour and hatch pattern fills for polygons. It supports well-known classification methods for quantitative data and puts emphasis on providing numerous options for all underlying processes, to fine-tune the visualization (data normalization, rounding class boundary values, legend templating etc.). This highly customizable extension intends to help people who do not have experience with map design and are not familiar with scripting to an extent to be able to code visually pleasing thematic maps for websites.