Table Of Content (TOC/Legend) Widget Classic Style | AMD style
  • Click check box in TOC to turn on/off layers. When click on groups, all sublayers will be turned on/off.
  • Click , notice TOC refreshed to reflect the new renderer of FeatureLayer.
  • Click to programatically turn layer on/off, notice TOC automatically sync with model(no refresh needed).
  • Click to programatically find node for layer inside a map service, then either hide (layer id=12,"Damage Assessment") or collapse (layer id=0,"Public Safety") it.
  • Click to programmtically insert a layer then refresh TOC.
  • Click to programmtically set transparency of a layer with slider enabled.