Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix broken date selector in comparison mode

ZachTRice6d19d9b1a074
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 2547a0d1c..24f645114 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 && layerGroup.length) {
+ if (layerGroup && layerGroup.getLayers().getArray().length) {
let index = findLayerIndex(def, layerGroup);
layerGroup.getLayers().setAt(
index,