Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix console error thrown when switching projections - Return function if no coord variable is set

ZachTRiced2b8a41d1717
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index dcab33629..4e97d33db 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -854,6 +854,7 @@ export function mapui(models, config) {
}
pixels = map.getEventPixel(e.originalEvent);
coords = map.getCoordinateFromPixel(pixels);
+ if (!coords) return;
if (!olExtent.containsCoordinate(extent, coords)) {
outside = true;
}