ArcGIS API for JavaScript: Hosted/TVP_Linelayer (FeatureServer)

Built using the ArcGIS API for JavaScript