Interactive interface for browsing global, full-resolution satellite imagery
Add more comments #818
Benjamin Kinge7d8cdb29660
diff --git a/web/js/naturalEvents/cluster.js b/web/js/naturalEvents/cluster.jsindex 899b9c7d1..3196c7e99 100644--- a/web/js/naturalEvents/cluster.js+++ b/web/js/naturalEvents/cluster.js@@ -63,7 +63,7 @@ export function naturalEventsClusterPointToGeoJSON(id, coordinates, date) {};/*** @param {Array}- * @return {[type]}+ * @return {void}*/export function naturalEventsClusterSort(clusterArray) {let newArray = clusterArray.sort(function(a, b) {@@ -74,7 +74,14 @@ export function naturalEventsClusterSort(clusterArray) {});return newArray;};-+/**+ * Load points given superCluster Object+ *+ * @param {Object} superClusterObj+ * @param {Array} pointArray+ * @param {number} zoomLevel+ * @return {Object}+ */export function naturalEventsClusterGetPoints(superClusterObj, pointArray, zoomLevel) {superClusterObj.load(pointArray);return superClusterObj.getClusters([-180, -90, 180, 90], lodashRound(zoomLevel));