Original User: rduke40
I am trying to turn on a layer programmatically within widget code. I want to be able to trigger a layer to turn on programmatically when I click on a widget. The same action that comes from selecting a layer from the layers list is the same action I want to duplicate when selecting a particular widget from the widget list. with For example we have a Zones layer in our TOC list. When you select it, all the different zones will be highlighted on the map. I want to do the exact same thing programmatically when a widget is opened.
This is a pic of the map before the zones layer is selected: [ATTACH=CONFIG]18460[/ATTACH]
This is a pic of the map after the zones layer is selected: [ATTACH=CONFIG]18461[/ATTACH]
I want to duplicate this programmatically.
Thanks,
Ray