Digital Geography

how to create clustered points in leaflet

The leaflet API is very simple and tries to deliver best performance and style for commonly used features like tilelayers, points and lines and markers in general. So when we would like to visualize points it is possible to have a very large numbers of points. So lets have a look on such an basic example. I’ve created a point shape file with QGIS which has approx. 1.000 points embedded. Let’s have a look on a normal webmap with this density of information: As you can see, we’ve inlcuded a second js file with the point information called points_rand.js. You…