Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix distraction free mode

Jason Kentdc46a4277ed3
diff --git a/web/css/map.css b/web/css/map.css
index 48b414de8..4a0eaa488 100644
--- a/web/css/map.css
+++ b/web/css/map.css
@@ -201,7 +201,7 @@
}
.distraction-free-active .wv-map-zoom,
-.distraction-free-active .ol-overlaycontainer,
-.distraction-free-active .ol-overlaycontainer-stopevent {
+.distraction-free-active .wv-map-scale-imperial,
+.distraction-free-active .wv-map-scale-metric {
display: none;
}
diff --git a/web/js/containers/map-interactions/map-interactions.js b/web/js/containers/map-interactions/map-interactions.js
index 1b9765eff..93242bf12 100644
--- a/web/js/containers/map-interactions/map-interactions.js
+++ b/web/js/containers/map-interactions/map-interactions.js
@@ -39,8 +39,10 @@ class MapInteractions extends React.PureComponent {
}
}
function mapStateToProps(state) {
+ const { map, ui } = state;
return {
- isShowingClick: state.map.isClickable,
+ isShowingClick: map.isClickable,
+ isDistractionFreeModeActive: ui.isDistractionFreeModeActive,
};
}
MapInteractions.propTypes = {