mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
Changing clusterSize calculation
This commit is contained in:
@@ -345,8 +345,8 @@ export function calcClusterSize(pointCount, totalPoints) {
|
||||
Just like with opacity, we use a multiplication factor to ensure that clusters with higher point
|
||||
counts appear larger. */
|
||||
//TO-DO: Convert maxSize into a config var
|
||||
const maxSize = totalPoints > 60 ? 60 : 40;
|
||||
return Math.min(maxSize, 10 + (pointCount / totalPoints) * 150);
|
||||
const maxSize = totalPoints > 60 ? 60 : 35;
|
||||
return Math.min(maxSize, 10 + (pointCount / totalPoints) * 100);
|
||||
}
|
||||
|
||||
export function calculateTotalClusterPoints(clusters) {
|
||||
|
||||
Reference in New Issue
Block a user