Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

skip projection init if there are no projections

Mike McGann0994171efa96
diff --git a/web/js/projection/model.js b/web/js/projection/model.js
index d4f51c6af..0fc0038ba 100644
--- a/web/js/projection/model.js
+++ b/web/js/projection/model.js
@@ -10,6 +10,12 @@ export function projectionModel(config) {
var init = function () {
self.selectDefault();
+
+ // Return if no projections have been defined
+ if (!config.projections) {
+ return;
+ }
+
Object.values(config.projections).forEach((proj) => {
if (proj.crs && proj.proj4) {
self.register(proj.crs, proj.proj4);