Skip to content

Commit

Permalink
added some debugging for removal of hurr layers
Browse files Browse the repository at this point in the history
  • Loading branch information
lstillwe committed Sep 21, 2023
1 parent 939c576 commit 192df69
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/custom-ui/components/utils/storm-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ export function removeStormLayers(viewState, item) {
const layer_id = getTruncatedId(layer.uniqueId);
return layer_id === item_id;
}).length;

console.log("workbench items:");
console.log(viewState.terria.workbench.items);
console.log("item:");
console.log(item);
console.log("num_layers:");
console.log(num_layers);
// only remove the storm layers if all of the
// layers for the same model run are gone.
if (num_layers <= LAYER_TYPES.length) {
Expand All @@ -152,6 +157,8 @@ export function removeStormLayers(viewState, item) {
viewState.terria.workbench.remove(layer);
});
}
console.log("workbench items after deletes:");
console.log(viewState.terria.workbench.items);
}

export function toggleStormLayerVisability(viewState, item) {}
Expand Down

0 comments on commit 192df69

Please sign in to comment.