This sample has the basic functions of a GIS application:
1) A table of contents(TOC) to allow layers turn on/off, layers visiblity controled by map scale and reflected on TOC.
2) Allow click on map to do spatial query, with options to choose layers.
Note:Layers from cached service or Layers that are not visible in current zoom level are disabled.
Click anywhere on map to show data(on right side of map).
Retrieve data for layer:
Map data at clicked location:
Switch to a different map service: Map Opacity(0=transparent;1=opaque):