Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Only show event tab is events is active #1954

Benjamin King6be281892f13
diff --git a/web/js/map/natural-events/track.js b/web/js/map/natural-events/track.js
index 30f6ce0ff..8e2525b5b 100644
--- a/web/js/map/natural-events/track.js
+++ b/web/js/map/natural-events/track.js
@@ -35,7 +35,7 @@ export default function naturalEventsTrack(ui, store, selectedMap) {
*/
var init = function() {
selectedMap.on('moveend', function(e) {
- if (self.active) {
+ if (self.active && store.getState().events.active) {
if (self.trackDetails.id) {
addPointOverlays(selectedMap, self.trackDetails.pointArray);
} else {