ArcGIS API for JavaScript: Profile (MapServer)

Built using the ArcGIS API for JavaScript