Interactive interface for browsing global, full-resolution satellite imagery
fix layergroup length condition to accomodate for vector layer marker
Ed Plato032a6f4e4ee1
diff --git a/web/js/map/ui.js b/web/js/map/ui.jsindex b54b67c93..376114507 100644--- a/web/js/map/ui.js+++ b/web/js/map/ui.js@@ -768,7 +768,7 @@ export default function mapui(models, config, store, ui) {let layerGroup;if (compare && compare.active) {layerGroups = self.selected.getLayers().getArray();- if (layerGroups.length === 2) {+ if (layerGroups.length > 1) {layerGroup = layerGroups[0].get('group') === compare.activeString? layerGroups[0]: layerGroups[1].get('group') === compare.activeString