mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Minor changes to example config for feature flags
This commit is contained in:
@@ -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