Minor changes to example config for feature flags

This commit is contained in:
efarooqui
2021-08-08 17:06:48 -07:00
parent ba4f5efdd2
commit 096cfaa073
3 changed files with 10 additions and 8 deletions

View File

@@ -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

View File

@@ -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}

View File

@@ -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) {