ArcGIS JavaScript API: FlowDirection2018 (ImageServer)

Built using the ArcGIS API for JavaScript