HEXAGONAL GRIDS APPLIED TO CLUSTERING LOCATIONS IN WEB MAPS
- 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
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.