Interactive interface for browsing global, full-resolution satellite imagery
Prevent showing coords outside of area > 250 #2551
Benjamin Kingfdd21ddb0546
diff --git a/web/js/components/map/ol-coordinates.js b/web/js/components/map/ol-coordinates.jsindex e8b0c22e2..8b845da23 100644--- a/web/js/components/map/ol-coordinates.js+++ b/web/js/components/map/ol-coordinates.js@@ -39,7 +39,7 @@ class OlCoordinates extends React.Component {return;}if (Math.abs(lon) > 180) {- if (crs === 'EPSG:4326') {+ if (crs === 'EPSG:4326' && Math.abs(lon) < 250) {lon = util.normalizeWrappedLongitude(lon);pcoord = [lon, lat];} else {