mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
Put event locations on top of narrative arrows in map
This commit is contained in:
@@ -108,7 +108,9 @@ function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation,
|
||||
|
||||
return (
|
||||
<Portal node={svg}>
|
||||
{locations.map(renderLocation)}
|
||||
<g className='event-locations'>
|
||||
{locations.map(renderLocation)}
|
||||
</g>
|
||||
</Portal>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -135,11 +135,17 @@ function MapNarratives ({ styles, onSelectNarrative, svg, narrative, narratives,
|
||||
)
|
||||
}
|
||||
|
||||
if (narrative === null) return (<div />)
|
||||
if (narrative === null) return (
|
||||
<Portal node={svg}>
|
||||
<g/>
|
||||
</Portal>
|
||||
)
|
||||
|
||||
return (
|
||||
<Portal node={svg}>
|
||||
{narratives.map(n => renderNarrative(n))}
|
||||
<g className='narratives'>
|
||||
{narratives.map(n => renderNarrative(n))}
|
||||
</g>
|
||||
</Portal>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user