mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
add event counts for locations
This commit is contained in:
@@ -168,8 +168,10 @@ class Map extends React.Component {
|
||||
* components in the <g/> div.
|
||||
*/
|
||||
styleLocation(location) {
|
||||
const noEvents = location.events.length
|
||||
return [
|
||||
{ fill: 'orange' },
|
||||
null,
|
||||
() => noEvents > 1 ? <text className='location-count' dx='-3' dy='4'>{noEvents}</text> : null
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user