ArcGIS API for JavaScript: layers/Trail (FeatureServer)

Built using the ArcGIS API for JavaScript