mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
rm console; improve default config
This commit is contained in:
@@ -49,7 +49,6 @@ class Dashboard extends React.Component {
|
||||
handleSelect(selected) {
|
||||
if (selected) {
|
||||
let eventsToSelect = selected.map(event => this.getEventById(event.id));
|
||||
console.log(eventsToSelect, selected)
|
||||
eventsToSelect = eventsToSelect.sort((a, b) => parseDate(a.timestamp) - parseDate(b.timestamp))
|
||||
|
||||
this.props.actions.fetchSelected(eventsToSelect)
|
||||
|
||||
@@ -106,9 +106,9 @@ const initial = {
|
||||
categories: {
|
||||
default: 'red',
|
||||
// Add here other categories to differentiate by color, like:
|
||||
alpha: '#00ff00',
|
||||
beta: '#ff0000',
|
||||
other: 'yellow'
|
||||
alpha: '#c73e1d',
|
||||
beta: '#f40000',
|
||||
other: '#f3de2c'
|
||||
},
|
||||
|
||||
narratives: {
|
||||
@@ -121,7 +121,7 @@ const initial = {
|
||||
narrative_1: {
|
||||
style: 'solid', // ['dotted', 'solid']
|
||||
opacity: 0.4, // range between 0 and 1
|
||||
stroke: 'yellow', // Any hex or rgb code
|
||||
stroke: '#f18f01', // Any hex or rgb code
|
||||
strokeWidth: 2
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user