Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

clear prleoad on layer add

Jason Kent6db7b0f200e9
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 2f8e9010d..dcdeb8bcf 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -104,6 +104,7 @@ export default function mapui(models, config, store, ui) {
switch (action.type) {
case layerConstants.ADD_LAYER: {
const def = lodashFind(action.layers, { id: action.id });
+ store.dispatch({ type: dateConstants.CLEAR_PRELOAD });
return addLayer(def);
}
case CLEAR_MARKER: