Interactive interface for browsing global, full-resolution satellite imagery
Add check for empty LayerGroup in updateDate method
ZachTRicef396160462c2
diff --git a/web/js/map/ui.js b/web/js/map/ui.jsindex 9eb6867ed..2547a0d1c 100644--- a/web/js/map/ui.js+++ b/web/js/map/ui.js@@ -507,7 +507,7 @@ export function mapui(models, config) {}if (models.compare && models.compare.active) {- if (layerGroup) {+ if (layerGroup && layerGroup.length) {let index = findLayerIndex(def, layerGroup);layerGroup.getLayers().setAt(index,