ArcGIS API for JavaScript: Hosted/XsectTool (FeatureServer)

Built using the ArcGIS API for JavaScript