Interactive interface for browsing global, full-resolution satellite imagery
don't show coords until mouse is detected
Mike McGannde9a45038246
diff --git a/web/js/components/map/ol-coordinates.js b/web/js/components/map/ol-coordinates.jsindex 47f7cff75..9ff947785 100644--- a/web/js/components/map/ol-coordinates.js+++ b/web/js/components/map/ol-coordinates.js@@ -8,6 +8,7 @@ class OlCoordinates extends React.Component {constructor(props) {super(props);this.state = {+ hasMouse: false,latitude: null,longitude: null,crs: null,@@ -40,6 +41,7 @@ class OlCoordinates extends React.Component {}this.setState({+ hasMouse: true,format: util.getCoordinateFormat(),latitude: pcoord[1],longitude: pcoord[0],@@ -69,8 +71,8 @@ class OlCoordinates extends React.Component {}render() {- // if mobile return- if (util.browser.small) {+ // Don't render until a mouse is being used+ if (!this.state.hasMouse) {return null;}