Working on select that selects all events in a cluster; need to configure UI to both zoom and select events

This commit is contained in:
efarooqui
2020-10-05 09:45:17 -07:00
parent 9357b5e281
commit 47b9a66816
3 changed files with 19 additions and 2 deletions

View File

@@ -180,6 +180,10 @@ export function isLongitude(lng) {
return !!lng && isFinite(lng) && Math.abs(lng) <= 180;
}
export function mapClustersToLocations(clusters, locations) {
return clusters.map(cl => locations.find(location => location.label === cl.properties.id))
}
export const dateMin = function () {
return Array.prototype.slice.call(arguments).reduce(function (a, b) {
return a < b ? a : b