AnsweredAssumed Answered

Onscreen button to toggle layers

Question asked by bwilsonmgist on Aug 7, 2015
Latest reply on Apr 19, 2016 by mike.robb

Hi, I'm looking to create an onscreen button that when clicked simply toggles certain layers on and off. I'm able to get the layer via the var OutageLayer = map.getLayer("Outages"); and then set to show or hide, but what else needs to be in the widget.js?  Is there any other widgets that i could copy the guts out of to use? The idea is that during an storm our dispatch folks and click the "Storm Mode" button and the layers will be set to a predetermined visibility to avoid search through layers.  Any help is appreciated.