Interactive interface for browsing global, full-resolution satellite imagery
destroy map compare on A|B toggle #1623
Benjamin Kingfe67ae61c740
diff --git a/web/js/map/ui.js b/web/js/map/ui.jsindex fd69e0d15..fe0ad124c 100644--- a/web/js/map/ui.js+++ b/web/js/map/ui.js@@ -277,7 +277,7 @@ export function mapui(models, config, store) {var layerGroupStr = compareState.isCompareA ? 'active' : 'activeB';var activeLayers = layers[layerGroupStr];if (!config.features.compare || !compareState.active) {- if (compareState.active) {+ if (!compareState.active) {compareMapUi.destroy();}clearLayers(map);