mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Changed back to normal opacities instead of radial gradients; could add a var that's read from the config to determine styling: radial gradient || normal opacity
This commit is contained in:
@@ -169,11 +169,11 @@ export function calcOpacity (num) {
|
||||
}
|
||||
|
||||
export function calcClusterOpacity (pointCount, totalPoints) {
|
||||
return Math.min(0.8, 0.08 + (pointCount / totalPoints) * 50)
|
||||
return Math.min(0.85, 0.08 + (pointCount / totalPoints) * 50)
|
||||
}
|
||||
|
||||
export function calcClusterSize (pointCount, totalPoints) {
|
||||
return Math.min(50, 10 + (pointCount / totalPoints) * 75)
|
||||
return Math.min(50, 10 + (pointCount / totalPoints) * 250)
|
||||
}
|
||||
|
||||
export function isLatitude (lat) {
|
||||
|
||||
Reference in New Issue
Block a user