Interactive interface for browsing global, full-resolution satellite imagery
fix crossDateline check #1568
Benjamin King40b7d9d49ac0
diff --git a/web/js/natural-events/track.js b/web/js/natural-events/track.jsindex 34d7f4188..1822c088f 100644--- a/web/js/natural-events/track.js+++ b/web/js/natural-events/track.js@@ -215,10 +215,7 @@ export default function naturalEventsTrack(models, ui, config) {* @return {Boolean}*/const crossesDateLine = function(activeCoord, nextCoord) {- return (- Math.abs(Math.abs(activeCoord[0]) - Math.abs(nextCoord[0])) <- Math.abs(activeCoord[0] - nextCoord[0])- );+ return Math.abs(activeCoord[0] - nextCoord[0]) > 180;};/*** Convert coordinates to be over date line