fix: change color of pins and show population instead of depth (#402)

This commit is contained in:
Vojtech Simetka
2022-06-20 11:44:31 +02:00
committed by GitHub
parent b3028d7893
commit 127d44fd7a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ function addPins(map: DottedMap, pins: MapRecord[], color: string) {
}
const mapPrecomputed = new DottedMap({ map: JSON.parse(mapData) })
addPins(mapPrecomputed, deduplicatedRecords, '#dd7200')
addPins(mapPrecomputed, deduplicatedRecords, '#303030')
const mapSvgOptions: DottedMapWithoutCountriesLib.SvgSettings = { shape: 'hexagon', radius: 0.21, color: '#dadada' }
@@ -60,7 +60,7 @@ export default function Card({ style }: Props): ReactElement {
const points = findIntersection(fullMapDb, peers)
const mapNew = Object.create(mapPrecomputed)
addPins(mapNew, points, '#67BE68')
addPins(mapNew, points, '#09CA6C')
setMap(mapNew.getSVG(mapSvgOptions))
}, [peers])