ArcGIS API for JavaScript: DispatchNewOverlay (MapServer)

Built using the ArcGIS API for JavaScript