The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences
Download
Publications Copernicus
Download
Citation
Articles | Volume XLIII-B4-2022
Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci., XLIII-B4-2022, 435–440, 2022
https://doi.org/10.5194/isprs-archives-XLIII-B4-2022-435-2022
Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci., XLIII-B4-2022, 435–440, 2022
https://doi.org/10.5194/isprs-archives-XLIII-B4-2022-435-2022
 
02 Jun 2022
02 Jun 2022

HEXAGONAL GRIDS APPLIED TO CLUSTERING LOCATIONS IN WEB MAPS

A. Beresnev1, A. Semenov2, and E. Panidi1 A. Beresnev et al.
  • 1Department of Cartography and Geoinformatics, Institute of Earth Sciences, Saint Petersburg State University, St. Petersburg, Russia
  • 2Geosemantica LLC, St. Petersburg, Russia

Keywords: Clustering, Hexagonal Grid, Visualization, Geographic Data

Abstract. One of the popular ways to clutter reduction techniques is to combine neighboring points into one marker that somehow shows that it contains multiple entities – this way is called clustering. In this paper, we present a JavaScript library to define optimal size of clusters and render them. Moreover, markers have to present heterogeneous data inside of clusters.

The presented library relies on server side clustering, no matter if is it a real-time clustering or a static bunch of hexagonal grids. For the library, a server provides the bunch of grid layers by different cell sizes – from smaller to larger. The library relies on data fetching provided by external library, such as Mapbox/Maplibre, so it can work with both GeoJSON and vector tiles. Using the HTML Canvas to render the marker allows to full customizing the marker image: manage the colors and proportions of cluster fractions and the size.