Hide other narratives when one is selected

This commit is contained in:
Franc Camps-Febrer
2019-02-01 11:06:36 -05:00
parent 0f542777d7
commit 6906adc258

View File

@@ -30,7 +30,7 @@ function MapNarratives ({ styles, onSelectNarrative, svg, narrative, narratives,
// 0 if not in narrative mode, 1 if active narrative, 0.1 if inactive
let styles = {
strokeOpacity: (n === null) ? 0
: (step && (n.id === narrative.id)) ? 1 : 0.1,
: (step && (n.id === narrative.id)) ? 1 : 0.0,
strokeWidth: 0,
strokeDasharray: 'none',
stroke: 'none'