diff --git a/src/common/utilities.js b/src/common/utilities.js index ad76526..371509e 100644 --- a/src/common/utilities.js +++ b/src/common/utilities.js @@ -1,7 +1,6 @@ import moment from 'moment' import hash from 'object-hash' - let { DATE_FMT, TIME_FMT } = process.env if (!DATE_FMT) DATE_FMT = 'MM/DD/YYYY' if (!TIME_FMT) TIME_FMT = 'HH:mm' @@ -175,16 +174,16 @@ export function calcOpacity (num) { } export function calcClusterOpacity (pointCount, totalPoints) { - /* Clusters represent multiple events within a specific radius. The darker the cluster, + /* 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. */ return Math.min(0.85, 0.08 + (pointCount / totalPoints) * 50) } 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. */ + /* 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. */ return Math.min(50, 10 + (pointCount / totalPoints) * 150) } diff --git a/src/components/Map.jsx b/src/components/Map.jsx index 231a7a2..f4a22d1 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -15,7 +15,6 @@ import Clusters from './presentational/Map/Clusters.jsx' import SelectedEvents from './presentational/Map/SelectedEvents.jsx' import Narratives from './presentational/Map/Narratives' import DefsMarkers from './presentational/Map/DefsMarkers.jsx' -import LoadingOverlay from '../components/Overlay/Loading' import { mapClustersToLocations, isIdentical } from '../common/utilities'