Cant turn layer back on

15 Views Asked by At

I am working on a interactive map and I can turn the layer off but I cant turn it back on. I cant get the jQuery else to work.

$(function() {
    $("#BS").click(function () {
       if (avenzaViewer.isLayerVisible("BuyingScrapple"))
            avenzaViewer.setVisible("BuyingScrapple", true); 
        else
            avenzaViewer.setVisible("BuyingScrapple", false); 
    });
});
0

There are 0 best solutions below