ArcGIS API for JavaScript: TMS/Intersectlayers (MapServer)

Built using the ArcGIS API for JavaScript