Changing clusterSize calculation

This commit is contained in:
efarooqui
2021-05-11 19:57:20 -07:00
parent b4981f1bbf
commit 8abe017785

View File

@@ -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) {