Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add Proper extent to track #283

Benjamin King4ba05b5da50c
diff --git a/web/js/naturalEvents/cluster.js b/web/js/naturalEvents/cluster.js
index ef20e12b3..26c1fbf40 100644
--- a/web/js/naturalEvents/cluster.js
+++ b/web/js/naturalEvents/cluster.js
@@ -61,7 +61,7 @@ export function sortCluster(clusterArray) {
export function naturalEventsGetClusterPoints(superClusterObj, pointArray, zoomLevel) {
superClusterObj.load(pointArray);
- return superClusterObj.getClusters([-180, -85, 180, 85], lodashRound(zoomLevel));
+ return superClusterObj.getClusters([-180, -90, 180, 90], lodashRound(zoomLevel));
};
export function naturalEventsClusterAppend(tooltipEl, dateString) {
diff --git a/web/js/naturalEvents/track.js b/web/js/naturalEvents/track.js
index ef5917b1f..b0f33dafe 100644
--- a/web/js/naturalEvents/track.js
+++ b/web/js/naturalEvents/track.js
@@ -112,6 +112,7 @@ var naturalEventsTrackLayer = function(featuresArray, styles) {
source: new OlSourceVector({
features: featuresArray
}),
+ extent: [-180, -90, 180, 90],
style: function(feature) {
return styles[feature.get('type')];
}