I am trying to build a web map with a number of layer that can be toggled on and off. Initially the map gets drawn without any issues, but when I try to toggle off any layer