diff --git a/src/components/Map.jsx b/src/components/Map.jsx index 8940d17..dfc9743 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -199,19 +199,8 @@ class Map extends React.Component { onClusterSelect (e) { const { id } = e.target const { longitude, latitude } = e.target.attributes - - // const clusterLeaves = this.index.getLeaves(parseInt(id), Infinity, 0) - // const leavesToLocations = mapClustersToLocations(clusterLeaves, this.props.domain.locations) - - // const locationEvents = leavesToLocations.reduce((acc, loc) => { - // loc.events.forEach(evt => acc.push(evt)) - // return acc - // }, []) - const expansionZoom = Math.max(this.index.getClusterExpansionZoom(parseInt(id)), this.index.options.minZoom) this.map.flyTo(new L.LatLng(latitude.value, longitude.value), expansionZoom) - - // this.props.methods.onSelect(locationEvents) } getClientDims () { diff --git a/src/components/Timeline.jsx b/src/components/Timeline.jsx index 61e91aa..8c6adef 100644 --- a/src/components/Timeline.jsx +++ b/src/components/Timeline.jsx @@ -304,7 +304,6 @@ class Timeline extends React.Component { const extraStyle = { ...heightStyle, ...foldedStyle } const contentHeight = { height: dims.contentHeight } const { categories } = this.props.domain - return (