Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge branch 'develop' of https://github.com/nasa-gibs/worldview into redux-merge-with-timeline2

Benjamin Kingc1d28cf80bbf
diff --cc web/js/map/ui.js
index 438bb0136,ad3eafa56..8d9b872c5
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@@ -583,8 -505,8 +583,8 @@@ export function mapui(models, config, s
return;
}
- if (models.compare && models.compare.active) {
+ if (compare && compare.active) {
- if (layerGroup) {
+ if (layerGroup && layerGroup.length) {
let index = findLayerIndex(def, layerGroup);
layerGroup.getLayers().setAt(
index,