ArcGIS API for JavaScript: other_layers (MapServer)

Built using the ArcGIS API for JavaScript