Removed logic for selecting all cards on cluster select; putting out PR to get feedback

This commit is contained in:
efarooqui
2020-10-06 10:19:09 -07:00
parent 47b9a66816
commit 233ddbfc99
4 changed files with 2 additions and 14 deletions

View File

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