mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
Bumping maxsize for clusters
This commit is contained in:
@@ -344,7 +344,8 @@ export function calcClusterSize(pointCount, totalPoints) {
|
||||
/* The larger the cluster size, the higher the count of points that the cluster represents.
|
||||
Just like with opacity, we use a multiplication factor to ensure that clusters with higher point
|
||||
counts appear larger. */
|
||||
const maxSize = totalPoints > 60 ? 40 : 20;
|
||||
//TO-DO: Convert maxSize into a config var
|
||||
const maxSize = totalPoints > 60 ? 60 : 40;
|
||||
return Math.min(maxSize, 10 + (pointCount / totalPoints) * 150);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user