ArcGIS JavaScript API: Base/BasemapUpdate (MapServer)

Built using the ArcGIS API for JavaScript