mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
Minor changes to example config for feature flags
This commit is contained in:
@@ -2,10 +2,10 @@ module.exports = {
|
||||
title: 'example',
|
||||
display_title: 'example',
|
||||
SERVER_ROOT: 'http://localhost:4040',
|
||||
EVENTS_EXT: '/api/timemap_data/export_events/deeprows',
|
||||
CATEGORIES_EXT: '/api/timemap_data/export_categories/rows',
|
||||
ASSOCIATIONS_EXT: '/api/timemap_data/export_associations/deeprows',
|
||||
SOURCES_EXT: '/api/timemap_data/export_sources/deepids',
|
||||
EVENTS_EXT: '/api/colombia_test/export_events/deeprows',
|
||||
CATEGORIES_EXT: '/api/colombia_test/export_categories/rows',
|
||||
ASSOCIATIONS_EXT: '/api/colombia_test/export_associations/deeprows',
|
||||
SOURCES_EXT: '/api/colombia_test/export_sources/deepids',
|
||||
SITES_EXT: '',
|
||||
SHAPES_EXT: '',
|
||||
DATE_FMT: 'MM/DD/YYYY',
|
||||
@@ -17,9 +17,10 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
features: {
|
||||
USE_CATEGORIES: false,
|
||||
COLOR_BY_ASSOCIATION: true,
|
||||
USE_CATEGORIES: true,
|
||||
USE_ASSOCIATIONS: true,
|
||||
USE_SOURCES: false,
|
||||
USE_SOURCES: true,
|
||||
USE_COVER: false,
|
||||
GRAPH_NONLOCATED: false,
|
||||
HIGHLIGHT_GROUPS: false
|
||||
|
||||
@@ -276,7 +276,7 @@ class Map extends React.Component {
|
||||
this.superclusterIndex.options.minZoom
|
||||
);
|
||||
const zoomLevelsToSkip = 2;
|
||||
const zoomToFly = Math.max(
|
||||
const zoomToFly = Math.min(
|
||||
expansionZoom + zoomLevelsToSkip,
|
||||
this.props.app.cluster.maxZoom
|
||||
);
|
||||
@@ -384,6 +384,7 @@ class Map extends React.Component {
|
||||
individualClusters,
|
||||
this.props.domain.locations
|
||||
);
|
||||
|
||||
return (
|
||||
<Events
|
||||
svg={this.svgRef.current}
|
||||
|
||||
@@ -160,7 +160,7 @@ const TimelineEvents = ({
|
||||
const { shape: eventShape } = event;
|
||||
|
||||
let renderShape = isDot ? renderDot : renderBar;
|
||||
if (eventShape.shape) {
|
||||
if (eventShape && eventShape.shape) {
|
||||
if (eventShape.shape === AVAILABLE_SHAPES.BAR) {
|
||||
renderShape = renderBar;
|
||||
} else if (eventShape.shape === AVAILABLE_SHAPES.DIAMOND) {
|
||||
|
||||
Reference in New Issue
Block a user