I'm using the amenitiesLayer with the ServiceAreaTask. I want to list the amenities under the ServiceArea that the user define on the map by clicking on it.
Is it possible to do that ? Or is there a code sample, Widget or API that will help me to do that ?
Find service areas : https://developers.arcgis.com/javascript/latest/find-service-areas/
Amenities Layer
https://services6.arcgis.com/Do88DoK2xjTUCXd1/arcgis/rest/services/OSM_Amenities_NA/FeatureServer
Service Area Task :
https://route-api.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World/solv...