I am working with ArcGIS API for Javascript 4.x and have created a service that contains a raster dataset. I have been able to successfully add and view all other published services (/MapServer) in my MapView except for the published raster dataset. In my research I have noticed that many of the samples where imagery is added to the MapView are of ImageServer type. In the 4X version of the API, is it a requirement to have the Image Service server extension to view raster datasets in a custom mapping application?
If it is not, could someone provide a sample of how to add a raster dataset to a MapView?
Thanks in advance
You may be able to create a dynamic map image sublayer from a raster: Sublayer | API Reference | ArcGIS API for JavaScript 4.4
Here's a sample that does something similar: ArcGIS API for JavaScript Sandbox
Specifically, you're probably interested in a dynamic data layer, which is the source for a single dynamic sublayer: Sublayer | API Reference | ArcGIS API for JavaScript 4.4