ArcGIS API for JavaScript: Hosted/Redline_Polyline_(view_layer) (FeatureServer)

Built using the ArcGIS API for JavaScript