ArcGIS API for JavaScript: BaseMap/TmsUtility (MapServer)

Built using the ArcGIS API for JavaScript