Interactive interface for browsing global, full-resolution satellite imagery
WV-587: Skip onViewChange check if there is no centroid
Mike McGann315a541a6b66
diff --git a/src/js/Worldview/Widget/DataDownload.js b/src/js/Worldview/Widget/DataDownload.jsindex a168f13dd..a9aebae8b 100644--- a/src/js/Worldview/Widget/DataDownload.js+++ b/src/js/Worldview/Widget/DataDownload.js@@ -133,7 +133,7 @@ Worldview.Widget.DataDownload = function(config, spec) {var extent = map.getExtent().toGeometry();log.debug("view changed", extent);$.each(lastResults.granules, function(index, granule) {- if ( granule.centroid ) {+ if ( granule.centroid && granule.centroid[map.projection] ) {hasCentroids = true;if ( extent.intersects(granule.centroid[map.projection]) ) {inView = true;