Select to view content in your preferred language

Onscreen button to toggle layers

4809
10
08-07-2015 07:12 AM
BrianWilson3
Regular Contributor

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.

Thanks,

Brian

0 Kudos
10 Replies
MichaelRobb
Honored Contributor

Hi Brian,

Anything you can provide would be greatly appreciated.

Thanks

0 Kudos