I am using an .on click function to enable a setting. How would I modify this to say on click, toggle the (true) value from false to true and back again on the next click?
$("#myBtn").on('click', function(){
panorama.setVisible(true);
});