Working cluster visualization; need to modify styling for clusters for size and work out color based on events

This commit is contained in:
efarooqui
2020-09-30 10:53:15 -07:00
parent 80584c1717
commit aa87db6b84
4 changed files with 56 additions and 7 deletions

View File

@@ -168,6 +168,10 @@ export function calcOpacity (num) {
return base + (Math.min(0.5, 0.08 * (num - 1)))
}
export function calcClusterSize (pointCount, numClusters) {
return Math.min(50, 10 + (pointCount / numClusters) * 20)
}
export const dateMin = function () {
return Array.prototype.slice.call(arguments).reduce(function (a, b) {
return a < b ? a : b