mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user