mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +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;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ const initial = {
|
||||
|
||||
narratives: {
|
||||
default: {
|
||||
style: 'dotted', // ['dotted', 'solid']
|
||||
style: 'solid', // ['dotted', 'solid']
|
||||
opacity: 0.9, // range between 0 and 1
|
||||
stroke: 'red', // Any hex or rgb code
|
||||
strokeWidth: 3
|
||||
|
||||
Reference in New Issue
Block a user