mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
Apply correct narrative styles in map
This commit is contained in:
committed by
Lachlan Kermode
parent
40ac0eb120
commit
7b25efda95
@@ -395,7 +395,7 @@ Stop and start the development process in terminal after you have added your tok
|
||||
})
|
||||
.style('stroke-opacity', d => {
|
||||
if (app.narrative === null) return 0;
|
||||
if (!d[0] || app.narrative.id !== d[0].narrative) return 0.2;
|
||||
if (!d[0] || !d[0].narratives.find(n => n === app.narrative.id)) return 0.2;
|
||||
return 1;
|
||||
})
|
||||
.style('fill', 'none');
|
||||
@@ -408,7 +408,7 @@ Stop and start the development process in terminal after you have added your tok
|
||||
})
|
||||
.style('stroke-opacity', d => {
|
||||
if (app.narrative === null) return 0;
|
||||
if (!d[0] || app.narrative.id !== d[0].narrative) return 0.2;
|
||||
if (!d[0] || !d[0].narratives.find(n => n === app.narrative.id)) return 0.2;
|
||||
return 1;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user