From fff1e46b1630a008f39703412e78b31c29b66393 Mon Sep 17 00:00:00 2001 From: Ebrahem Farooqui Date: Tue, 27 Oct 2020 12:22:50 -0700 Subject: [PATCH] Update utilities.js change opacity back to not using a base value --- src/common/utilities.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/utilities.js b/src/common/utilities.js index 511731c..651797a 100644 --- a/src/common/utilities.js +++ b/src/common/utilities.js @@ -272,8 +272,7 @@ export function calcClusterOpacity (pointCount, totalPoints) { /* Clusters represent multiple events within a specific radius. The darker the cluster, the larger the number of underlying events. We use a multiplication factor (50) here as well to ensure that the larger clusters have an appropriately darker shading. */ - const base = 0.5 - return base + Math.min(0.95, 0.08 + (pointCount / totalPoints) * 50) + return Math.min(0.85, 0.08 + (pointCount / totalPoints) * 50) } export function calcClusterSize (pointCount, totalPoints) {